Wikia

Vim Tips Wiki

Script:2586

Talk0
1,610pages on
this wiki
Revision as of 05:17, October 29, 2013 by JohnBeckett (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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 vim.org).
  • This page may be out of date: check the script's vim.org page above, and its release notes.

RemappingEdit

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

CommentsEdit

Around Wikia's network

Random Wiki