Re: good keys for mappings

2007-06-02 Thread John Little
Hi all Tony said: F2 to F12 (with the possible exception of F10), Shift-F1 to Shift-F12. Perhaps not the OP, but someone might find this useful. Vim, at least on Windows, also knows about F13, F14 and F15. I've never seen a keyboard with such, but registry mappings can be used to map the

Re: [Fwd: RE: Save as not responding]

2007-05-21 Thread John Little
Hi Try explicitly setting the browsedir option to a directory before clicking save as ... For example, set browsedir=c:\ It may be that vim has remembered some now inaccessible place and is trying to display its contents. HTH

Re: automatically enter normal mode

2007-05-09 Thread John Little
CursorHold,CursorHoldI * :call Timer() turns vim into a clock. It doesn't work in visual, command, and operator pending mode. I use it as a tail -f viewer (replace the echo with checktime | normal G) for log files I want to have syntax highlighted, a practice I find really helpful. Regards, John

Re: Annoying insertion.

2007-04-19 Thread John Little
Hi Do you have a wheel-mouse, and use the wheel? Inadvertent middle button presses using the wheel can randomly drop bits of text, selected from random parts of the screen. If you don't use the middle button, consider mapping it to something harmless, like nop. HTH

Re: invoking yanked register into colon command

2007-04-03 Thread John Little
Gene Kwiecinski wrote: Me, I go to whatever I'm looking for, hit 'v', then use normal motion commands (eg, 3e) to highlight the text in question, instead of using the mouse. If a single word, '*' will automagically highlight and search for the word under the cursor. And with vnoremap *

Re: Why does F2 sometimes get inserted in the text?

2007-03-31 Thread John Little
John Wiersba wrote: When I press F2, rather than doing the action associated with F2? Sometimes when this happens, it will happen again, but often it won't repeat for a while. It sounds like you have the mapping defined in normal mode, with :map, but not in insert mode, with :map!. Often

Re: Customizing vim: How to change the char before commands

2007-03-24 Thread John Little
I *love* it, and regret not having done it years ago. There's so much available in command mode with Vim; it would have been best to have adopted this map when I started with Vim. I suspect that on Bill Joy's original keyboard a colon was not a shifted key press. Friendly regards, John Little

Re: replace with a number sequence

2007-01-29 Thread John Little
Hi IMHO simpler and more flexible (works if there are lines not matching the pattern) is: :let n=0 | g/opIndex(\zs\d\+/s//\=n/|let n+=1 A useful idiom I learned here. Usually I muck around with ordinary searches until the search highlighting shows I've got it right, then :let

ksh93s and vim

2006-08-24 Thread John Little
Hi all The wikipedia entry for the Korn shell http://en.wikipedia.org/wiki/Korn_shell has a tantalizing parenthetical note: ksh93s will add a 4th vim mode Googling for ksh93s + vim only finds the wikipedia article, or copies of it, and ksh93 + vim mode the same, and ksh93 + vim nothing I

ksh93s

2006-08-18 Thread John Little
Hi all The wikipedia entry for the Korn shell http://en.wikipedia.org/wiki/Korn_shell has a tantalizing parenthetical note: ksh93s will add a 4th vim mode Googling for ksh93s + vim only finds the wikipedia article, or copies of it, and ksh93 + vim mode the same, and ksh93 + vim nothing I