vim-dentures


Ⅰ. 插件描述

Indentation text-objects - give your old Vim some new bytes!

Ⅱ. 基本信息

创建日期:  2014-03-11
使用用户:  6
Github星:  20
插件作者:  Quinn Strahl

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'qstrahl/vim-dentures'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'qstrahl/vim-dentures'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'qstrahl/vim-dentures'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# vim-dentures

Indentation text-objects to give your old Vim some new bytes.

Introduction

In addition to helping old people chew food, "dentures" is a playful term
made up for indentation text-objects, and is also the name of this plugin.

Text Objects

Dentures introduces the following text-objects to your crusty old Vim, all
of which are available in visual-mode and Operator-pending-mode:

  • ai: "an indent", select surrounding lines with greater or equal
    indentation, delimited by blank lines. Leading or trailing blank lines are

included in the selection.

  • ii: "inner indent", select surrounding lines with greater or equal
    indentation, delimited by blank lines.
  • aI: "an INDENT", select surrounding lines with greater or equal
    indentation, including blank lines between and leading or trailing blank

lines.

  • iI: "inner INDENT", select surrounding lines with greater or equal
    indentation, including blank lines between.

When any of the above text-objects are invoked from blockwise-visual mode,
the selection will begin at the first non-blank character of the first
selected line. Try it; you'll like it. (See :help blockwise-operators)

Take A Bite

The best way to wrap your head around dentures is to take a bite; try out each
of the text-objects introduced by this plugin for yourself. Great care has
been taken to behave in a way that is consistent with other text-objects.

添加新评论