Howto stop display of title, line # from a cntrl-G ?

2007-02-23 Thread Larry Alkoff
While learning vim 4.6.2 I typed a control-G to display the name of the file, number of lines and characters on the bottom. What is the command to get out of that mode? Larry -- Larry Alkoff N2LA - Austin TX Using Thunderbird on Linux

Re: VimTips - Google Wiki Usefulness

2007-02-23 Thread Bram Moolenaar
John Beckett wrote: > I like the concept of using the Google wiki. In addition to the "Google > is Good" factor, there is the likelihood of very high reliability and zero > cost. Also, it seems appropriate due to Bram's work. > > As has been pointed out, spam is a really big threat, and will get

Re: different indenting for Ruby files

2007-02-23 Thread A.J.Mechelynck
Simon Jackson wrote: # Method II (in the vimrc) # autocommand FileType ruby setlocal sts=2 et I tried this and i got: not an editor command Oops! s/autocommand/autocmd Best regards, Tony. -- hundred-and-one symptoms of being an internet addict: 60. As your car crashes through the gu

Re: VimTips - Google Wiki Usefulness

2007-02-23 Thread John Beckett
I like the concept of using the Google wiki. In addition to the "Google is Good" factor, there is the likelihood of very high reliability and zero cost. Also, it seems appropriate due to Bram's work. As has been pointed out, spam is a really big threat, and will get worse (more automated) every y

Re: tips project

2007-02-23 Thread Bram Moolenaar
Tom Purl wrote: > >> Ok everyone, the project's created: > >> > >> * http://code.google.com/p/vimtips/ > > > > I think there's a major disadvantage in using the code.google.com wiki > > - it only allows people who have been added to the project to edit the > > wiki via the web interface (please c

Re: Insert new blank line in normal mode

2007-02-23 Thread A.J.Mechelynck
for_lists wrote: I guess I just don't get it. o -> 2 key presses :put_ -> 6 key presses (8 if you count shift) Why is ':put_' or other variants easier? -Brian ":put" is an ex-command. I spoke of using o at the keyboard, or ":put =''" in a script. To use o in a *script*, you must use

Re: different indenting for Ruby files

2007-02-23 Thread A.J.Mechelynck
Jabba Laci wrote: Hi, I always use 3 spaces for indenting. Now I started to learn Ruby, and the style guide says Ruby developers prefer 2 spaces. I just wonder how I could change the indenting just for *.rb files. Thanks, Laszlo see :help 'tabstop' :hel

Re: VimTips - Google Wiki Usefulness

2007-02-23 Thread A.J.Mechelynck
Brian McKee wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 23-Feb-07, at 3:55 PM, A.J.Mechelynck wrote: Waiting for email (with a pseudorandom confirmation code) proves that the registration wasn't requested "in your name" by someone else. It requires no human intervention server-sid

different indenting for Ruby files

2007-02-23 Thread Jabba Laci
Hi, I always use 3 spaces for indenting. Now I started to learn Ruby, and the style guide says Ruby developers prefer 2 spaces. I just wonder how I could change the indenting just for *.rb files. Thanks, Laszlo

Re: VimTips - Google Wiki Usefulness

2007-02-23 Thread Brian McKee
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 23-Feb-07, at 3:55 PM, A.J.Mechelynck wrote: Waiting for email (with a pseudorandom confirmation code) proves that the registration wasn't requested "in your name" by someone else. It requires no human intervention server-side and only a few

Re: Insert new blank line in normal mode

2007-02-23 Thread A.J.Mechelynck
Andy Wokula wrote: A.J.Mechelynck schrieb: Alexey Vakhov wrote: Hi Dear community, Command o and O create new line and switch to insert mode. I want only insert blank line and stay in normal mode. I know this problem can be solved using simple mappting, but maybe in vim there are original comm

Re: VimTips - Google Wiki Usefulness

2007-02-23 Thread A.J.Mechelynck
Brian McKee wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 23-Feb-07, at 3:00 PM, Brian McKee wrote: On 23-Feb-07, at 2:32 PM, Tom Purl wrote: I've done a bit of work on the vimtips wiki at Google the last few days, and it's come to my attention that it isn't really designed to do wh

Re: VimTips - Google Wiki Usefulness

2007-02-23 Thread Tom Purl
> I guess we need (if possible) something along the lines of "the" wiki, > .wikipedia.org Mediawiki (the wiki engine used by Wikipedia) is very nice, and it's the one I'm leaning towards also. >> This awkward user-registration process will most certainly keep >> people from contributing or updati

Re: VimTips - Google Wiki Usefulness

2007-02-23 Thread A.J.Mechelynck
Yakov Lerner wrote: [...] My opinion is that that wikipedia-style wiki is the best. It's scalable, it proved itself, i think it's easy on admins, afaik it's used not only by wikipedia. Regarding anonymous contributions, they proved problematic on vim.org/tips. Anonymous contrib was what created

Re: Marking an undo-block before ^U in insert-mode

2007-02-23 Thread Yegappan Lakshmanan
Hi, On 2/23/07, Andy Wokula <[EMAIL PROTECTED]> wrote: In my vimrc I have (for gVim 6.4, gVim 7.0) :imap u Each "u" goes back one line of text in the undo history. Note the "imap" instead of "inoremap". This way abbreviations still work. Does it say in the help that if a key is mapped

Re: VimTips - Google Wiki Usefulness

2007-02-23 Thread A.J.Mechelynck
Tom Purl wrote: I've done a bit of work on the vimtips wiki at Google the last few days, and it's come to my attention that it isn't really designed to do what we want it to do. The Google wiki is designed to be used by a small number of people working on a particular open source project. It is

Re: Insert new blank line in normal mode

2007-02-23 Thread Andy Wokula
A.J.Mechelynck schrieb: Alexey Vakhov wrote: Hi Dear community, Command o and O create new line and switch to insert mode. I want only insert blank line and stay in normal mode. I know this problem can be solved using simple mappting, but maybe in vim there are original commands for this tip? T

Re: VimTips - Google Wiki Usefulness

2007-02-23 Thread Brian McKee
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 23-Feb-07, at 3:00 PM, Brian McKee wrote: On 23-Feb-07, at 2:32 PM, Tom Purl wrote: I've done a bit of work on the vimtips wiki at Google the last few days, and it's come to my attention that it isn't really designed to do what we want it to

Re: Marking an undo-block before ^U in insert-mode

2007-02-23 Thread Andy Wokula
A.J.Mechelynck schrieb: Andy Wokula wrote: There is another strange detail about u In my vimrc I have (for gVim 6.4, gVim 7.0) :imap u Each "u" goes back one line of text in the undo history. Note the "imap" instead of "inoremap". This way abbreviations still work. For the strange part: T

Re: Insert new blank line in normal mode

2007-02-23 Thread A.J.Mechelynck
A.J.Mechelynck wrote: [...] :command -bar -bang -range -nargs=* Iline \ if == '!' | put! = | \ else | put = | endif Best regards, Tony. The following is maybe easier to understand -- or maybe not: :command -nargs=0 -bar -bang -range -reg Put \ exe (( == '!') ? : ) .

Re: VimTips - Google Wiki Usefulness

2007-02-23 Thread Yakov Lerner
On 2/23/07, Tom Purl <[EMAIL PROTECTED]> wrote: I've done a bit of work on the vimtips wiki at Google the last few days, and it's come to my attention that it isn't really designed to do what we want it to do. The Google wiki is designed to be used by a small number of people working on a partic

VimTips - Google Wiki Usefulness

2007-02-23 Thread Tom Purl
I've done a bit of work on the vimtips wiki at Google the last few days, and it's come to my attention that it isn't really designed to do what we want it to do. The Google wiki is designed to be used by a small number of people working on a particular open source project. It is not designed to b

Re: Insert new blank line in normal mode

2007-02-23 Thread A.J.Mechelynck
Kev wrote: A.J.Mechelynck wrote: Alexey Vakhov wrote: Hi Dear community, Command o and O create new line and switch to insert mode. I want only insert blank line and stay in normal mode. I know this problem can be solved using simple mappting, but maybe in vim there are original commands for t

Re: tips project

2007-02-23 Thread Tom Purl
> Sorry for answering off list again, I can not post to the list. That's unfortunate. I'm happy to post this to the list. >>> There is one thing to mention about parsing tips. Are we going to put >>> the additional comments to the wiki? There are many useful comments >>> but there are also many

Re: Insert new blank line in normal mode

2007-02-23 Thread Kev
A.J.Mechelynck wrote: Alexey Vakhov wrote: Hi Dear community, Command o and O create new line and switch to insert mode. I want only insert blank line and stay in normal mode. I know this problem can be solved using simple mappting, but maybe in vim there are original commands for this tip? Tha

Re: tips project

2007-02-23 Thread Charles E Campbell Jr
Tom Purl wrote: There is one thing to mention about parsing tips. Are we going to put the additional comments to the wiki? There are many useful comments but there are also many useless junk. It would be _lots_ of work to look at every comment and see if they're useful or not. What are your i

Re: Marking an undo-block before ^U in insert-mode

2007-02-23 Thread A.J.Mechelynck
Andy Wokula wrote: Yakov Lerner schrieb: On 2/20/07, Tim Chase <[EMAIL PROTECTED]> wrote: I'm trying to find a good way to remap control+U in insert-mode so that it begins an undo-block. There are times when type control+U in insert-mode and it doesn't do what I intend, or I want to undo it, o

Re: tips project

2007-02-23 Thread Tom Purl
>> Ok everyone, the project's created: >> >> * http://code.google.com/p/vimtips/ > > I think there's a major disadvantage in using the code.google.com wiki > - it only allows people who have been added to the project to edit the > wiki via the web interface (please correct me if I'm wrong). At leas

Re: Marking an undo-block before ^U in insert-mode

2007-02-23 Thread Andy Wokula
Yakov Lerner schrieb: On 2/20/07, Tim Chase <[EMAIL PROTECTED]> wrote: I'm trying to find a good way to remap control+U in insert-mode so that it begins an undo-block. There are times when type control+U in insert-mode and it doesn't do what I intend, or I want to undo it, only to find that an

Re: Insert new blank line in normal mode

2007-02-23 Thread A.J.Mechelynck
Alexey Vakhov wrote: Hi Dear community, Command o and O create new line and switch to insert mode. I want only insert blank line and stay in normal mode. I know this problem can be solved using simple mappting, but maybe in vim there are original commands for this tip? Thanks a lot IIUC there

Re: tips project

2007-02-23 Thread Swaroop C H
Ok everyone, the project's created: * http://code.google.com/p/vimtips/ I think there's a major disadvantage in using the code.google.com wiki - it only allows people who have been added to the project to edit the wiki via the web interface (please correct me if I'm wrong). At least if it allow

Re: tips project

2007-02-23 Thread Tom Purl
> There is one thing to mention about parsing tips. Are we going to put > the additional comments to the wiki? There are many useful comments but > there are also many useless junk. > It would be _lots_ of work to look at every comment and see if they're > useful or not. > What are your ideas

Re: Sorting a .bib file

2007-02-23 Thread Charles E Campbell Jr
Vincent Beffara wrote: So here is my question. I have a bibliography in a .bib file, which (just in case) is just a plain text files containing entries that each look like this : @article{key, author = {Whatshisname, J.}, title = {My paper} } (note the '@' at the beginning of the first line

Re: search something from vim in certain directory

2007-02-23 Thread Marc Weber
On Fri, Feb 23, 2007 at 04:26:50PM +0300, Pavel Shevaev wrote: > >:vimgrep pattern directory/**/*.h > > Just an aside question - is there anything alike for find & replace in > files? Something like :%s/../../g could be very helpful... > Especially it would be great to see replaced stuff in quick

Re: add c/c++ snippets

2007-02-23 Thread hermitte
Hello, Alexey Vakhov <[EMAIL PROTECTED]> wrote: > I want to add simple code snippets. For example if I press { I > want to extend this to > { > <--- cursor > } > How can I make this by simplest way? The simpliest way ? Well, it probably consists in using one of the numerous c or C++ ftplugins o

Re: search something from vim in certain directory

2007-02-23 Thread Pavel Shevaev
:vimgrep pattern directory/**/*.h Just an aside question - is there anything alike for find & replace in files? Something like :%s/../../g could be very helpful... Especially it would be great to see replaced stuff in quickfix window. -- Best regards, Pavel

Re: Advanced highlighting (using ctags for example)

2007-02-23 Thread Marc Weber
On Fri, Feb 23, 2007 at 10:52:52AM +0300, Alexey Vakhov wrote: > Hi All, > > One question more ) Can i highlight words using for example ctags file > and highlight wrong identifier like Visual Assist in Visual Studio. > Thanks. Yet another idea: try [ which does tag completion. Than you have a va

Re: Advanced highlighting (using ctags for example)

2007-02-23 Thread Marc Weber
On Fri, Feb 23, 2007 at 10:52:52AM +0300, Alexey Vakhov wrote: > Hi All, > > One question more ) Can i highlight words using for example ctags file > and highlight wrong identifier like Visual Assist in Visual Studio. > Thanks. Hi Alexey Thats possible. vim syntax highligthing is doing this. try

Re: add c/c++ snippets

2007-02-23 Thread Marc Weber
On Fri, Feb 23, 2007 at 11:36:40AM +0300, Alexey Vakhov wrote: > I mean If I press enter end next press { system should to understand > that it is new block and add right bracket also. But if I press Enter > and start line with another symbol system should do nothing. Thanks > for :inoremap tip. It

Re: Insert new blank line in normal mode

2007-02-23 Thread Tim Chase
> Command o and O create new line and switch to insert mode. I want only > insert blank line and stay in normal mode. I know this problem can be > solved using simple mappting, but maybe in vim there are original > commands for this tip? AFAIK, there's no built-in command to do this in Vim. Howev

Re: add c/c++ snippets

2007-02-23 Thread Alexey Vakhov
I mean If I press enter end next press { system should to understand that it is new block and add right bracket also. But if I press Enter and start line with another symbol system should do nothing. Thanks for :inoremap tip. It's useful ) 2007/2/23, Gavin Gilmour <[EMAIL PROTECTED]>: Hi, I assu

Re: add c/c++ snippets

2007-02-23 Thread Gavin Gilmour
Hi, I assume that you mean {? If so, I have a bunch of mappings that do just this: inoremap { {}O With some bonus ones that you may either like or find incredibly annoying: inoremap [ [] inoremap ( () inoremap " "" inoremap ' '' I'm undecided on the latter! Cheers, Gavin. On Fri, Feb 23, 20

Re: tips project

2007-02-23 Thread Kim Schulz
On Fri, 23 Feb 2007 06:32:28 +0200 Ali Polatel <[EMAIL PROTECTED]> wrote: > There is one thing to mention about parsing tips. Are we going to > put the additional comments to the wiki? There are many useful > comments but there are also many useless junk. > It would be _lots_ of work to look at