Vim Tips Wiki


Revision as of 05:17, October 29, 2013 by JohnBeckett (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
1,619pages on
this wiki

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


Around Wikia's network

Random Wiki