Vim Tips Wiki


1,623pages on
this wiki
Add New Page
Add New Page Talk0

Use this page to discuss script 2586 upAndDown: swapping a line with the line directly above or below

  • Add constructive comments, bug reports, or discuss improvements (see the guideline).
  • Do not document the script here (the author should do that on
  • This page may be out of date: check the script's page above, and its release notes.


Here is an example of remapping upAndDown.vim to use Ctrl-Shift-<Arrow>

nmap <C-S-Up> <Plug>upAndDownUp
nmap <C-S-Down> <Plug>upAndDownDown
imap <C-S-Up> <Plug>upAndDownInsertUp
imap <C-S-Down> <Plug>upAndDownInsertDown
vmap <C-S-Up> <Plug>upAndDownVisualUp
vmap <C-S-Down> <Plug>upAndDownVisualDown

--October 29, 2013


Also on Fandom

Random Wiki