vim-textobj-blanklines


Ⅰ. 插件描述

A Vim text object for selecting blank lines

Ⅱ. 基本信息

创建日期:  2016-07-25
使用用户:  4
Github星:  1
插件作者:  zandr

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'deathlyfrantic/vim-textobj-blanklines-the-heights'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'deathlyfrantic/vim-textobj-blanklines-the-heights'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'deathlyfrantic/vim-textobj-blanklines-the-heights'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/deathlyfrantic/vim-textobj-blanklines

Ⅳ. 文档说明

## textobj-blanklines

A plugin that provides a text object for groups of empty lines.

UPDATE 2017-01-14: The behavior of this plugin has changed a bit.
Previously, a<Space> selected all of the blank lines between two non-blank
lines; both lines before and after the current line. However, I discovered
that the inner paragraph (ip) text object built in to Vim does this already.
Rather than duplicate existing functionality, I have changed a<Space> to
select only blank lines before the current one. So now you can choose lines
above with a<Space>, lines below with i<Space>, or all lines with ip.

a<Space> selects all of the blank lines from the current one to the previous
non-blank line (assuming the current one is blank); i<Space> selects all blank
lines starting with the current until the next non-blank line. For the purposes
of this plugin, "blank" means contains only whitespace. (A line with spaces
and/or tabs, but no other characters, is considered blank.)

This plugin depends on kana/vim-textobj-user.

添加新评论