smarttill


Ⅰ. 插件描述

Vim plugin: Smart motions, till before/after a punctuation

Ⅱ. 基本信息

创建日期:  2009-06-11
使用用户:  7
Github星:  8
插件作者:  Kana Natsuno

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

smarttill is a Vim plugin to provide {motion}s like |t| and |T|, but they
are smarter than the built-in ones in some sense.  For example, if you edit
the following text and you want to delete a partial text from the cursor till
before a comma, you have to type "dt," (here "|" means the cursor position):

    ...|Yo DJ, pump this party! ...
        ^^^^^

But it's somewhat annoying to type another character to specify where the
cursor should be moved to explicitly.  It's useful if there is a motion to
move the cursor till before comma, period or other punctuations without
specifying a character.  smarttill provides the features as
|<Plug>(smarttill-t)| and |<Plug>(smarttill-T)|.

See also |smarttill-examples| for customization.

Requirements:

  • Vim 7.2 or later

Latest version:
http://github.com/kana/vim-smarttill

Document in HTML format:
http://kana.github.com/config/vim/smarttill.html

添加新评论