vim-linemovement


Ⅰ. 插件描述

simplify the line movement in vim

Ⅱ. 基本信息

创建日期:  2013-03-22
使用用户:  9
Github星:  19
插件作者:  Yueyoum

Ⅲ. 安装方法

使用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

Using vundle
or pathogen

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.

moving_line

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

expand_line

添加新评论