Friday, September 10, 2010

Multiple lines different only in 2 words. How ?

I'm remapping window navigation in vimrc file and I have use command like this:
nnoremap <M-Right> <C-W><Right>

I need to repeat the line with Right replaced to Left, U, D, hjkl - and I feed a bit silly copy-pasting the line and correcting manually.
What would be the fastest way to do that ?

Also, is there a way to remap all C-W combos to M- using smth like this:
nnoremap <M-> <C-W><
?

Thank you,
Andrey Yanov

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