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.

Remapping[edit source]

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

Comments[edit source]

Community content is available under CC-BY-SA unless otherwise noted.