*move.txt* Moving lines and selections up and even down Author: Matthias Vogelgesang License: MIT (see |move-license|) =============================================================================== Contents *move-contents* 1. Usage..................................|move-usage| 2. Mappings...............................|move-mappings| 3. License................................|move-license| 4. Changelog..............................|move-changelog| =============================================================================== 1. Usage *move-usage* The move plugin is used to move lines and visual selections up and down by wrapping the :move command. =============================================================================== 2. Mappings *move-mappings* To enable custom key maps you must disable the automatic key maps with > let g:move_map_keys = 0 The plugin provide finger-friendly mappings to move text around by using keys. Your can specify the key modifier that uses in key bindings with > let g:move_key_modifier = 'M' All mappings can be prefixed with a {count} and will move {count} steps instead of one. ------------------------------------------------------------------------------- 2.1 MoveBlockDown Move selected block down by one line. Default: vmap MoveBlockDown ------------------------------------------------------------------------------- 2.2 MoveBlockUp Move selected block up by one line. Default: vmap MoveBlockUp ------------------------------------------------------------------------------- 2.3 MoveLineDown Move current line down by one. Default: nmap MoveLineDown ------------------------------------------------------------------------------- 2.4 MoveLineUp Move current line up by one. Default: nmap MoveLineUp ------------------------------------------------------------------------------- 2.5 MoveBlockHalfPageDown Move selected block down by half a page size. Default: not mapped ------------------------------------------------------------------------------- 2.6 MoveBlockHalfPageUp Move selected block up by half a page size. Default: not mapped ------------------------------------------------------------------------------- 2.7 MoveLineHalfPageDown Move current line down by half a page size. Default: not mapped ------------------------------------------------------------------------------- 2.7 MoveLineHalfPageUp Move current line up by half a page size. Default: not mapped =============================================================================== 3. License *move-license* This plugin is copyright by Matthias Vogelgesang and licensed under the MIT license. =============================================================================== 3. Changelog *move-changelog* v1.3-dev * Silence :move commands to avoid first-time errors on read-only files. v1.2 * Released on 08/14/13 * Add key modifier for bindings (@vitalk) * Use and in normal and visual mode (@vitalk) * Add Move{Block,Line}HalfPage{Up,Down} to move text in larger increments. v1.1 * Released on 08/10/13 * Minor bug fixes (helptags, mapping, docs) v1.0 * Released on 08/10/13 vim:ft=help: