Re: does vi has a funtion like grep -v?

2013-01-26 Thread skyworld
Thanks for all of your kind reply. I will check these ways. On Jan 25, 5:26 pm, Jiantao Wu 4576211...@gmail.com wrote: No, it does not. You can use '?' or '/' to search. 2013/1/25 skyworld chenyong20...@gmail.com Hi, does vi has a fuction like grep -v? I always found I need to seach

Re: doxygen.vim: missing space before *

2013-01-26 Thread Jeroen Budts
On 01/25/2013 04:53 PM, Ben Fritz wrote: On Friday, January 25, 2013 6:31:03 AM UTC-6, Jeroen Budts wrote: I recently enabled the doxygen.vim script (part of Vim) to highlight phpdoc inside php files. (let g:load_doxygen_syntax=1 in my .vimrc) When I start typing a phpdoc and press enter, Vim

Re: doxygen.vim: missing space before *

2013-01-26 Thread Christian Brabandt
Hi Jeroen! On Sa, 26 Jan 2013, Jeroen Budts wrote: On 01/25/2013 04:53 PM, Ben Fritz wrote: On Friday, January 25, 2013 6:31:03 AM UTC-6, Jeroen Budts wrote: I recently enabled the doxygen.vim script (part of Vim) to highlight phpdoc inside php files. (let g:load_doxygen_syntax=1 in my

Re: Updating Syntax menu

2013-01-26 Thread Russell Urquhart
On Sat, Jan 26, 2013 at 06:21:45AM +0100, Tony Mechelynck wrote: As has repeatedly been said on this list, you should NEVER change anything in the $VIMRUNTIME tree because any update can do away with your changes, without telling you that it did. You should rather save the modified

Re: doxygen.vim: missing space before *

2013-01-26 Thread Jeroen Budts
Hi Christian, On 01/26/2013 03:22 PM, Christian Brabandt wrote: Hi Jeroen! On Sa, 26 Jan 2013, Jeroen Budts wrote: On 01/25/2013 04:53 PM, Ben Fritz wrote: On Friday, January 25, 2013 6:31:03 AM UTC-6, Jeroen Budts wrote: I recently enabled the doxygen.vim script (part of Vim) to

Re: does vi has a funtion like grep -v?

2013-01-26 Thread Ping
Why not just use external grep in vim if that's what you want? :[range]!grep -v On Jan 25, 2013, at 7:20 AM, Catalin Ciurea catalin.ciu...@gmail.com wrote: On Friday, January 25, 2013 11:21:37 AM UTC+2, skyworld wrote: Hi, does vi has a fuction like grep -v? I always found I need to

Re: does vi has a funtion like grep -v?

2013-01-26 Thread Ben Fritz
On Saturday, January 26, 2013 10:34:32 AM UTC-6, ping wrote: Why not just use external grep in vim if that's what you want? :[range]!grep -v This will replace all the lines in [range] with the output of !grep. I don't think the OP wanted to DELETE the lines, just find them. The better

Re: Mapping for switching windows

2013-01-26 Thread Ben Fritz
On Friday, January 25, 2013 5:01:25 PM UTC-6, Aggelos Kolaitis wrote: Hello List,              Does anyone have some examples on mappings to switch windows faster CTRL-W, h and CTRL-W, l ?     I guess mapping shift-w to do this would be great for fast switching Add this to

Re: does vi has a funtion like grep -v?

2013-01-26 Thread ping
On 1/26/2013 11:38 AM, Ben Fritz wrote: On Saturday, January 26, 2013 10:34:32 AM UTC-6, ping wrote: Why not just use external grep in vim if that's what you want? :[range]!grep -v This will replace all the lines in [range] with the output of !grep. I don't think the OP wanted to DELETE

Re: Updating Syntax menu

2013-01-26 Thread Tony Mechelynck
On 26/01/13 15:34, Russell Urquhart wrote: On Sat, Jan 26, 2013 at 06:21:45AM +0100, Tony Mechelynck wrote: As has repeatedly been said on this list, you should NEVER change anything in the $VIMRUNTIME tree because any update can do away with your changes, without telling you that it did. You

changing a type of selection

2013-01-26 Thread Chris Lott
Is there a way to change a selection type from one to the other (say from visual to visual block mode) without deselecting, choosing the new type, and then reselecting using a range/movement? If I accidentally select in visual mode and deselect, then C-v to go into visual block, the 'gv' command

Re: Mapping for switching windows

2013-01-26 Thread neoaggelos
Hmmm... You're right, but to my knowledge, W is the same as w. So, it can be used for that purpose... Well, that depends on each one's needs of course On Jan 26, 2013, at 6:44 PM, Ben Fritz fritzophre...@gmail.com wrote: On Friday, January 25, 2013 5:01:25 PM UTC-6, Aggelos Kolaitis wrote:

Re: changing a type of selection

2013-01-26 Thread Christian Brabandt
Hi Chris! On Sa, 26 Jan 2013, Chris Lott wrote: Is there a way to change a selection type from one to the other (say from visual to visual block mode) without deselecting, choosing the new type, and then reselecting using a range/movement? If I accidentally select in visual mode and

Re: Mapping for switching windows

2013-01-26 Thread Christian Brabandt
Hi neoaggelos! On Sa, 26 Jan 2013, neoagge...@yahoo.gr wrote: Hmmm... You're right, but to my knowledge, W is the same as w. So, it can be used for that purpose... It is not. See :h word :h WORD regards, Christian -- Die Weltanschauungen mancher Menschen gleichen lächelnden Festungen.

Re: Mapping for switching windows

2013-01-26 Thread neoaggelos
Well, then W is the same as Ctrl-left and ctrl-right which work at normal, visual and normal mode. On Jan 26, 2013, at 11:37 PM, Christian Brabandt cbli...@256bit.org wrote: Hi neoaggelos! On Sa, 26 Jan 2013, neoagge...@yahoo.gr wrote: Hmmm... You're right, but to my knowledge, W is the

Re: Mapping for switching windows

2013-01-26 Thread Christian Brabandt
Hi neoaggelos! Please don't top poste. On Sa, 26 Jan 2013, neoagge...@yahoo.gr wrote: Well, then W is the same as Ctrl-left and ctrl-right which work at normal, visual and normal mode. The problem with ctrl is, it does not reliably work in all terminals. regards, Christian -- Man soll die

Re: Mapping for switching windows

2013-01-26 Thread darkweasel
Am 2013-01-26 23:03, schrieb Christian Brabandt: The problem with ctrl is, it does not reliably work in all terminals. And in addition, the ability to use alphanumeric keys to move around is the very reason many people (at least me) use vim and not something like kate or gedit or Notepad or

Re: Mapping for switching windows

2013-01-26 Thread skeept
On Friday, January 25, 2013 5:57:30 PM UTC-5, Adolfo Olivera wrote: Hello List,              Does anyone have some examples on mappings to switch windows faster CTRL-W, h and CTRL-W, l ? I use the mappings nmap TAB C-W nmap TABTAB C-WC-W this makes the movement between windows very

How to use fold-marker method with manpage sourcecode?

2013-01-26 Thread Charlie Kester
Hi vimmers, I'm editing a fairly lengthy manpage, so I'd like to be able to use vim folding to make the task easier. I'd like to use fdm=fold-marker, to make my folds persistent, but I can't figure out how to make this compatible with troff-style comments. If I select a set of lines and

Re: How to use fold-marker method with manpage sourcecode?

2013-01-26 Thread Marcin Szamotulski
On 16:41 Sat 26 Jan , Charlie Kester wrote: Hi vimmers, I'm editing a fairly lengthy manpage, so I'd like to be able to use vim folding to make the task easier. I'd like to use fdm=fold-marker, to make my folds persistent, but I can't figure out how to make this compatible with

Remove delay during map execution

2013-01-26 Thread Roy Fulbright
I have the following map which inserts a space and escapes back to normal mode. How can I remove the delay associated with it when I execute it? I want it to run immediately when I press the comma key in normal mode, but there is a delay (to determine if this is a leader character, I

Re: Remove delay during map execution

2013-01-26 Thread Ben Fritz
On Saturday, January 26, 2013 6:56:49 PM UTC-6, Roy Fulbright wrote: I have the following map which inserts a space and escapes back to normal mode. How can I remove the delay associated with it when I execute it? I want it to run immediately when I press the comma key in normal mode, but

Re: How to use fold-marker method with manpage sourcecode?

2013-01-26 Thread Charlie Kester
On 01/26/2013 04:41 PM, Charlie Kester wrote: Hi vimmers, I'm editing a fairly lengthy manpage, so I'd like to be able to use vim folding to make the task easier. I'd like to use fdm=fold-marker, to make my folds persistent, but I can't figure out how to make this compatible with troff-style

RE: Remove delay during map execution

2013-01-26 Thread Roy Fulbright
Date: Sat, 26 Jan 2013 17:04:23 -0800 From: fritzophre...@gmail.com To: vim_use@googlegroups.com Subject: Re: Remove delay during map execution On Saturday, January 26, 2013 6:56:49 PM UTC-6, Roy Fulbright wrote: I have the following map which inserts a space and escapes back to normal

Possible to stretch cursor on tab character?

2013-01-26 Thread neolus
I think it would be extremely useful to have the cursor stretch itself on every tab character, versus being placed at the beginning or end as if it were on a space, because the way it is right now is very ambiguos with space characters and one generally doesnt now if the curor is on a tab untill

Re: Possible to stretch cursor on tab character?

2013-01-26 Thread Tony Mechelynck
On 27/01/13 02:25, neolus wrote: I think it would be extremely useful to have the cursor stretch itself on every tab character, versus being placed at the beginning or end as if it were on a space, because the way it is right now is very ambiguos with space characters and one generally doesnt

Re: Possible to stretch cursor on tab character?

2013-01-26 Thread Tony Mechelynck
On 27/01/13 08:07, Tony Mechelynck wrote: On 27/01/13 02:25, neolus wrote: I think it would be extremely useful to have the cursor stretch itself on every tab character, versus being placed at the beginning or end as if it were on a space, because the way it is right now is very ambiguos with