smartchr


Ⅰ. 插件描述

Vim plugin: Insert several candidates with a single key

Ⅱ. 基本信息

创建日期:  2008-07-11
使用用户:  207
Github星:  31
插件作者:  Kana Natsuno

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

smartchr is a Vim plugin to support input several candidates with a single
key, like ess-smart-underscore in Emacs Speaks Statistics -- when user types
"_" key, it inserts " <- " for the first time or it replaces " <- " by "_" for
the second time.  This plugin provides functions to support to define such
key bindings easily.  For example:

inoremap <expr> _  smartchr#one_of(' <- ', '_')

Requirements:

  • Vim 7.1 or later

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

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

添加新评论