Ⅰ. 插件描述
simplify the line movement in vimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'yueyoum/vim-linemovement'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'yueyoum/vim-linemovement'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'yueyoum/vim-linemovement'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/yueyoum/vim-linemovement
Ⅳ. 文档说明
# linemovement.vim
Simplify the line movement in vim
install
vundle example:
" add the following line in your .vimrc
Bundle 'yueyoum/vim-linemovement'
" save it and run BundleInstall
Key bindings
ctrl-Up moving up (Up is up arrow key)
ctrl-Down moving down (down is down arrow key)
ctrl-shift-o adding empty lines at the above and bellow of current line.
just work in normal mode
Custom
You can change the default key bindings.
Add the following line in your .vimrc
let g:linemovement_up="<c-Up>"
let g:linemovement_down="<c-Down>"
replace the key bindings whatever you want!
move one line or block in any mode.

expand margin spaces, adding empty lines above and bellow the line.
