AutoClose


Ⅰ. 插件描述

This plugin for Vim enable an auto-close chars feature for you. For instance if you type an '(', ``autoclose`` will automatically insert a ')' and put the cursor between than.

Ⅱ. 基本信息

创建日期:  2007-09-04
使用用户:  1565
Github星:  487
插件作者:  Thiago Alves

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

==========

README.txt

This  plugin was  born  as a  personal  need to  get  some little  special

features from other editors into my preferred one. The Eclipse IDE editor has
an auto-complete for open-close pair of characters feature that I always
wanted into Vim.

As  soon as  you type  a character  that could  have a  matching (closing)

counterpart, Eclipse automatically puts its counterpart in front of your
cursor, and it is smart enough to ignore the closing character afterwards, if
typed, but just moves your cursor one character forward.

But  the Eclipse  editor  does not  stop  there. If  you  type an  opening

character on any part of your code that should not have a pair completion, it
will not insert the closing character for you.

The AutoClose plugin is an attempt to reproduce this behavior for Vim.

添加新评论