← back

z_mirror/kak-move-lines

git clone https://git.raiguard.me/z_mirror/kak-move-lines

Caleb HeuerRemove mention of sourcehut mailing list6ab7f03

trunk
1 folder2 files
languages

files

rc/
LICENSE1.1 KiB
README.md702 B

kak-move-lines

A plugin for the kakoune text editor that allows you to easily move your selected lines up and down.

Installation

Source move-lines.kak in your kakrc, or use a plugin manager.

Usage

The plugin provides the move-lines-up and move-lines-down commands. Intended use is to bind these commands to keys in normal mode:

map global normal <c-s-j> ': move-lines-down %val{count}<ret>'
map global normal <c-s-k> ': move-lines-up %val{count}<ret>'

Note the use of single quotes and %val{count}. This allows you to optionally specify the number of lines to move by - <c-s-j> will move down one line, but 15<c-s-j> will move down 15 lines.