On 26/04/2011, at 16:51, Gary Johnson wrote:
On 2011-04-26, Daniel Corręa wrote:Hello,How do I trigger the alert bell in Vim? I'd like to map the arrow keys to it.Comething like:map <Left> [alert bell]
The usual method of generating a bell is to execute <Esc> in normal
mode. Your mapping would then be
:nmap <Left> <Esc>
Regards,
Gary
" Don't use arrow keys
nmap <Left> <Esc>
nmap <Up> <Esc>
nmap <Right> <Esc>
nmap <Down> <Esc>
imap <Left> <Esc><Esc>a
imap <Up> <Esc><Esc>a
imap <Right> <Esc><Esc>a
imap <Down> <Esc><Esc>a
------------------------------------------------------------
Daniel Corrêa
+55 (45) 9938.3993
--
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