Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Swapping a line with the line directly above or below

branch: master
README
This is a mirror of http://www.vim.org/scripts/script.php?script_id=2586

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.
Something went wrong with that request. Please try again.