No, this is a sporadic thing. The weird thing is that vim is obviously recognizing that I hit the F2 key (since it inserts <F2>) but it isn't performing the action that's associated with F2.
----- Original Message ---- From: John Little <[EMAIL PROTECTED]> To: [email protected] Sent: Saturday, March 31, 2007 4:40:17 AM Subject: Re: Why does "<F2>" sometimes get inserted in the text? 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 with Vim one needs two mappings; for example, I use map <F7> :noh<CR> map! <F7> <C-O>:noh<cr> to turn off search highlighting till the next search. Note that the :map! version has to leave insert mode temporarily; that's why they're separate. vi was like this. Apologies if I'm off the mark. John ____________________________________________________________________________________ TV dinner still cooling? Check out "Tonight's Picks" on Yahoo! TV. http://tv.yahoo.com/
