Re: Reformat in visual area - vmap question

2007-01-13 Thread DervishD
Hi Jean Rene :) * Jean-Rene David [EMAIL PROTECTED] dixit: * DervishD [2007.01.12 07:45]: * A.J.Mechelynck [EMAIL PROTECTED] dixit: [...] Beware of ' and ` though: they are used in Normal mode for mark movements. Yes, but both keys do the same, so I'm on the safe side if

Re: Reformat in visual area - vmap question

2007-01-13 Thread DervishD
Hi Tim :) * Tim Chase [EMAIL PROTECTED] dixit: Yes, ñ or ç would be good. Beware of ' and ` though: they are used in Normal mode for mark movements. Yes, but both keys do the same, so I'm on the safe side if I choose only one of them, am I wrong? They do similar, but not

Re: keys available for mapping/leader (was Reformat in visual area - vmap question)

2007-01-12 Thread DervishD
Hi Tim :) * Tim Chase [EMAIL PROTECTED] dixit: \ is hard to type in my keyboard (spanish) because I'm forced to press Alt-Gr plus the top left key in the keyboard (just below ESC), so I'm looking for a good substitute for the leader: do you know where could I find free characters to

Re: Reformat in visual area - vmap question

2007-01-12 Thread DervishD
Hi Tony :) * A.J.Mechelynck [EMAIL PROTECTED] dixit: * Matthew Winn [EMAIL PROTECTED] dixit: The Leader defaults to \ on some installations, I believe. \ is the default value, and that's the value used if mapleader is empty. It's a bad idea to set mapleader to , unless you have a

Re: Reformat in visual area - vmap question

2007-01-12 Thread A.J.Mechelynck
DervishD wrote: [...] I have the 'ñ' at the tip of my right little finger ;) That's a perfect candidate for a leader or as a substitute for backslash :) I have 'ç' too (its a bit farther on the right, but still reachable with the little finger without having to actually look at the

Re: Reformat in visual area - vmap question

2007-01-12 Thread Tim Chase
Yes, ñ or ç would be good. Beware of ' and ` though: they are used in Normal mode for mark movements. Yes, but both keys do the same, so I'm on the safe side if I choose only one of them, am I wrong? They do similar, but not identical actions. The regular tick/apostrophe jumps to the

Re: Reformat in visual area - vmap question

2007-01-11 Thread DervishD
Hi Matthew :) * Matthew Winn [EMAIL PROTECTED] dixit: The Leader defaults to \ on some installations, I believe. \ is the default value, and that's the value used if mapleader is empty. It's a bad idea to set mapleader to , unless you have a keyboard where \ is hard to type, as , is

Re: keys available for mapping/leader (was Reformat in visual area - vmap question)

2007-01-11 Thread Tim Chase
\ is hard to type in my keyboard (spanish) because I'm forced to press Alt-Gr plus the top left key in the keyboard (just below ESC), so I'm looking for a good substitute for the leader: do you know where could I find free characters to use? Looks like every key is already a vim command and I

Re: Reformat in visual area - vmap question

2007-01-11 Thread A.J.Mechelynck
DervishD wrote: Hi Matthew :) * Matthew Winn [EMAIL PROTECTED] dixit: The Leader defaults to \ on some installations, I believe. \ is the default value, and that's the value used if mapleader is empty. It's a bad idea to set mapleader to , unless you have a keyboard where \ is hard to

Re: Reformat in visual area - vmap question

2007-01-10 Thread Matthew Winn
On Tue, 09 Jan 2007 17:45:56 +0200, Albie [EMAIL PROTECTED] wrote: First, run (in normal mode): :let mapleader That command will reveal the key you currently have configured to be your Leader. Assuming the output of the above command is: mapleader , You should then be

Re: Reformat in visual area - vmap question

2007-01-10 Thread Albie Janse van Rensburg
Matthew Winn wrote: On Tue, 09 Jan 2007 17:45:56 +0200, Albie [EMAIL PROTECTED] wrote: First, run (in normal mode): :let mapleader That command will reveal the key you currently have configured to be your Leader. Assuming the output of the above command is: mapleader ,

Reformat in visual area - vmap question

2007-01-09 Thread John Cordes
I have *very* little experience writing 'map' commands for my .vimrc (Linux). For some years I've had the following two commands for reformatting with the par utility. reformat paragraph with no arguments: map ** {!}par^M} reformat paragraph with arguments: map *^V {!}par They both work

Re: Reformat in visual area - vmap question

2007-01-09 Thread Charles E Campbell Jr
John Cordes wrote: I have *very* little experience writing 'map' commands for my .vimrc (Linux). For some years I've had the following two commands for reformatting with the par utility. reformat paragraph with no arguments: map ** {!}par^M} reformat paragraph with arguments: map *^V

Re: Reformat in visual area - vmap question

2007-01-09 Thread Tim Chase
reformat paragraph with no arguments: map ** {!}par^M} reformat paragraph with arguments: map *^V {!}par They both work well, but I frequently would like to run par on a visual selection. I naively tried vmap *^V {!}par I suspect you want something like vnoremap *^V :!par I'll throw

Re: Reformat in visual area - vmap question

2007-01-09 Thread John Cordes
On [2007-01-09 at 10:50am] Charles E Campbell Jr [EMAIL PROTECTED] wrote: John Cordes wrote: They both work well, but I frequently would like to run par on a visual selection. I naively tried vmap *^V {!}par but this fails with the message (when I try * 55 on a selected area)

Re: Reformat in visual area - vmap question

2007-01-09 Thread Tim Chase
Thanks for the response. I usually would be using Shift-V to select the lines for formatting; I take it vis.vim wouldn't work in that case? Heh, Dr. Chip answered the other half of my response. :) Normal ranges operate linewise. Dr. Chip's vis.vim plugin overcomes this limitation, and

Re: Reformat in visual area - vmap question

2007-01-09 Thread John Cordes
On [2007-01-09 at 11:00am] Tim Chase [EMAIL PROTECTED] wrote: I suspect you want something like vnoremap *^V :!par This one worked the way I expected - thanks! I'll throw in the obligatory caution that the * is an actual Vim command (and thus useful...I employ it nearly daily). You

Re: Reformat in visual area - vmap question

2007-01-09 Thread Albie
John Cordes wrote: On [2007-01-09 at 11:00am] Tim Chase [EMAIL PROTECTED] wrote: I suspect you want something like vnoremap *^V :!par This one worked the way I expected - thanks! I'll throw in the obligatory caution that the * is an actual Vim command (and thus useful...I employ

Re: Reformat in visual area - vmap question

2007-01-09 Thread Charles E Campbell Jr
John Cordes wrote: On [2007-01-09 at 10:50am] Charles E Campbell Jr [EMAIL PROTECTED] wrote: John Cordes wrote: They both work well, but I frequently would like to run par on a visual selection. I naively tried vmap *^V {!}par but this fails with the message (when I try * 55 on a

Re: Reformat in visual area - vmap question

2007-01-09 Thread Albie
John Cordes wrote: On [2007-01-09 at 11:00am] Tim Chase [EMAIL PROTECTED] wrote: I suspect you want something like vnoremap *^V :!par This one worked the way I expected - thanks! I'll throw in the obligatory caution that the * is an actual Vim command (and thus useful...I employ

Re: Reformat in visual area - vmap question

2007-01-09 Thread Charles E Campbell Jr
Tim Chase wrote: Thanks for the response. I usually would be using Shift-V to select the lines for formatting; I take it vis.vim wouldn't work in that case? Heh, Dr. Chip answered the other half of my response. :) Normal ranges operate linewise. Dr. Chip's vis.vim plugin overcomes this

Re: Reformat in visual area - vmap question

2007-01-09 Thread John Cordes
On [2007-01-09 at 11:55am] Albie [EMAIL PROTECTED] wrote: John Cordes wrote: On [2007-01-09 at 11:00am] Tim Chase [EMAIL PROTECTED] wrote: vnoremap leader= :!parcr vnoremap leaderg= :!parspace I never encountered leader before; I have just read :h on Leader but don't seem to be much

Re: Reformat in visual area - vmap question

2007-01-09 Thread Yegappan Lakshmanan
Hi, On 1/9/07, John Cordes [EMAIL PROTECTED] wrote: I have *very* little experience writing 'map' commands for my .vimrc (Linux). For some years I've had the following two commands for reformatting with the par utility. .. I never encountered leader before; I have just read :h on Leader