vim-move

Plugin to move lines and selections up and down

  • 所有者: matze/vim-move
  • 平台:
  • 許可證: MIT License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

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
推送於2023-10-08 14:03:13
最后一次提交2023-10-08 16:03:13
發布數5
最新版本名稱v1.4 (發布於 )
第一版名稱v1.0 (發布於 )
用户参与
星數1.2k
關注者數14
派生數57
提交數131
已啟用問題?
問題數42
打開的問題數7
拉請求數34
打開的拉請求數1
關閉的拉請求數1
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?