upAndDown : Swapping a line with the line directly above or below
| script karma |
Rating 40/15,
Downloaded by 2515 |
Comments, bugs, improvements
|
Vim wiki
|
| created by |
| Frederic Hardy |
| |
| script type |
| utility |
| |
| description |
Swapping a line with the line directly above or below it is a common task when writing computer software.
This script provides some mappings for normal, insert and visual modes which make this more easily accomplished.
Using it allows you to move a line (or multiple lines) of text up or down within a document using the <S> and <Up>/<Down> arrow keys.
This is similar to the <Alt> and <Up>/<Down> arrow text movement feature in Eclipse.
Thanks to tips http://vim.wikia.com/wiki/VimTip191. |
| |
| install details |
Download vimball, open it with vim, and do :so %.
By default, use <S-Up> and <S-Down> to move line or block of lines.
You can override this with remapping of :
<Plug>upAndDownUp
<Plug>upAndDownDown
<Plug>upAndDownInsertUp
<Plug>upAndDownInsertDown
<Plug>upAndDownVisualUp
<Plug>upAndDownVisualDown
|
| |
script versions (upload new version)
Click on the package to download.
ip used for rating: 142.132.191.50
|