Ⅰ. 插件描述
"inner line" vim text objectⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'vim-utils/vim-line'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'vim-utils/vim-line'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'vim-utils/vim-line'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-utils/vim-line
Ⅳ. 文档说明
# line.vim
Vim "inner line" text object works on the text inside the line.
Leading and trailing whitespace is ignored.
Text object
_ (underscore) - "inner line"
Examples
v_visually selects all the text in a line, except the
leading and trailing whitespace.y_yank "inner line".d_delete the whole line, but only "inner line" gets into the register.
Why?
It's shorter to type than ^vg_ + operator.
Installation
- Vundle<br/>
Plugin 'bruno-/vim-line' - Pathogen<br/>
git clone git://github.com/bruno-/vim-line.git ~/.vim/bundle/vim-line