On 20/04/11 11:49 PM, Ben Schmidt wrote:
nmap ,bn <ESC>:bn<CR>
...
nnoremap : ;

So first the nmap types <Esc>, but you are already in Normal mode, so
Esc usually just beeps, which might abort the mapping; so that's not a
good idea.

Even if it does get past that, though, it then types : but : has been
mapped to ; so instead of doing :bn<CR> it does ;bn<CR> (repeat last f
or t search in the same direction, or if there isn't one, probably just
beep and abort the mapping; or if it gets past that, then go back a
word, repeat the last search, and probably abort if the pattern is not
found, and then move down a line).

Try :nnoremap in place of :nmap even for the ones which don't swap keys
and see how far that gets you.

O, and leave out the Esc. E.g.

:nnoremap ,bn :bn<CR>

Smiles,

Ben.



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

Reply via email to