Saturday, March 3, 2012

mapping keys in any mode

If I want to map a function onto the same key in any mode, is this the
best way of doing it? :

map <silent> <F6> :nohlsearch<CR>
imap <silent> <F6> <Esc>:nohlsearch<CR>i

--

Best Regards,
Tarlika Elisabeth Schmitz

--
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

No comments:

Post a Comment