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


Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.