vim-line


Ⅰ. 插件描述

"inner line" vim text object

Ⅱ. 基本信息

创建日期:  2014-10-30
使用用户:  2
Github星:  9
插件作者:  vim-utils

Ⅲ. 安装方法

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

License

MIT

添加新评论