altercmd


Ⅰ. 插件描述

Vim plugin: Alter built-in Ex commands by your own ones

Ⅱ. 基本信息

创建日期:  2009-06-14
使用用户:  4
Github星:  13
插件作者:  Kana Natsuno

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

altercmd is a Vim plugin to provide an easy way to alternate built-in Ex
commands by user-defined Ex commands.  This plugin provides |:AlterCommand|
for this purpose.  For example, if you define :CD, a custom version of |:cd|,
add the following in your vimrc.

AlterCommand cd  CD

With the above setting, you can use :cd as if it is :CD.  It means that :CD
will be automatically inserted if you type :cd as an Ex command, so you don't
have to type :CD to use :cd and you'll never encounter mistyping :cd and :CD.

:AlterCommand also supports partial command names.  For example, |:help| can
be invoked with :h, :he, :hel or :help.

AlterCommand h[elp]  HELP

With the above setting, you can use :h, :he, :hel and :help as if they are
:HELP, your own version of :help.

Requirements:

  • Vim 7.2 or later

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

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

添加新评论