vim-move

Plugin to move lines and selections up and down

Github星跟踪图

move

It's annoying to delete and paste parts of a text just to move it up/down or
left/right a bit.
There is the :m[ove] command but it is quite awkward to use by todays
standards. vim-move is a Vim plugin that moves lines and selections in a more
visual manner. Out of the box, the following keys are mapped in visual and
normal mode:

<A-k>   Move current line/selection up
<A-j>   Move current line/selection down
<A-h>   Move current character/selection left
<A-l>   Move current character/selection right

The mappings can be prefixed with a count, e.g. 5<A-k> will move the selection
up by 5 lines.

See this short demo for a first impression:

vim-vertical-move demo

vim-horizontal-move_demo

Installation

vim-move is compatible with all major plugin managers. To install it using
Vundle, add

Bundle 'matze/vim-move'

to your .vimrc.

Customization

Use g:move_key_modifier to set a custom modifier for key bindings. For
example,

let g:move_key_modifier = 'C'

which will create the following key bindings:

<C-k>   Move current line/selections up
<C-j>   Move current line/selections down

And so on...

License

This plugin is licensed under MIT license.

主要指标

概览
名称与所有者matze/vim-move
主编程语言Vim Script
编程语言Vim script (语言数: 1)
平台
许可证MIT License
所有者活动
创建于2013-08-09 20:57:40
推送于2025-09-03 09:44:28
最后一次提交2025-09-03 11:44:28
发布数5
最新版本名称v1.4 (发布于 )
第一版名称v1.0 (发布于 )
用户参与
星数1.2k
关注者数13
派生数59
提交数133
已启用问题?
问题数43
打开的问题数8
拉请求数35
打开的拉请求数1
关闭的拉请求数1
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?