Peng Yu wrote:
> I want to define a key shortcut switch the line above the cursor and
> the line below the cursor without affecting what is in the buffer (I
> mean the things copied by say 'yy'). Could you show me how to do it?
:-m+|-2m-
or as a map
:nnoremap <F5> :-m+<bar>-2m-<cr>
Regards,
Jürgen
--
Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that none of it has tried to contact us. (Calvin)
--
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