upAndDown : Swapping a line with the line directly above or below
| script karma
Downloaded by 1052
Comments, bugs, improvements
|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.
|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 :
Rating scripts is only available on the
script versions (upload new version)
Click on the package to download.
ip used for rating: 220.127.116.11