123047Re: Unable to enter functions keys in .vimrc or any other file
- May 2, 2011On Mon, May 2, 2011 at 22:59, Mahendra Ladhe <lml108@...> wrote:
> I am using vim 7.3 on Windows XP. I'm trying to map some function keys using 'map'Hitting the function keys in insert mode seems to default to print <F1>.
> command in the .vimrc
> When I enter the key sequence ctrl-v followed by some function key, say F1,
> vim enters the 4-character sequence <F1> instead of the actual control key F1.
> Btw, I'm able to use ctrl-v key for visual mode text selection.
> How do I enter function or any other control keys in .vimrc
Are you asking about the syntax?
Perhaps I am misunderstanding you here, but mapping e.g. ':q!' to 'F4'
works like this in .vimrc:
map <F4> :q!<CR>
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
- << Previous post in topic Next post in topic >>