sponsor Vim development Vim logo Vim Book Ad

LineJugglerCommands : Commands to duplicate and move around lines.

 script karma  Rating 0/0, Downloaded by 112    Comments, bugs, improvements  Vim wiki

created by
Ingo Karkat
script type
Most of the line manipulation mappings of the LineJuggler.vim plugin can
also be done with built-in Ex commands like :move, :put, etc. This plugin
adds those commands that do not exist (in a simple form) as built-in commands.
Sometimes, a command is just more practical (e.g. in a script), more
repeatable (from the command-line history), or offers different line
Namely, this plugin provides a :Swap command to exchange two ranges of

Inspired by the following Stack Overflow question:


- This plugin is based on the functionality of the (required) LineJugger.vim
  plugin (vimscript #4140), which offers many mappings to quickly duplicate
  and move lines to above / below the current line.

:[range]Swap {range}    Exchange the current line / line(s) given by [range]
                        with the lines in {range}.
install details
This script is packaged as a vimball. If you have the "gunzip" decompressor
in your PATH, simply edit the *.vmb.gz package in Vim; otherwise, decompress
the archive first, e.g. using WinZip. Inside Vim, install by sourcing the
vimball or via the :UseVimball command.
    vim LineJugglerCommands*.vmb.gz
    :so %
To uninstall, use the :RmVimball command.

- Requires Vim 7.0 or higher.
- Requires the ingo-library.vim plugin (vimscript #4433), version 1.002 or
- Requires the LineJuggler.vim plugin (vimscript #4140), version 1.22 or

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
LineJugglerCommands-1.00.vmb.gz 1.00 2013-03-08 7.0 Ingo Karkat Initial upload
ip used for rating:

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
SourceForge.net Logo