Ⅰ. 插件描述
Auto-"correct" British spellings to their American equivalent.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'nelstrom/vim-americanize'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'nelstrom/vim-americanize'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'nelstrom/vim-americanize'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/nelstrom/vim-americanize
Ⅳ. 文档说明
Auto-"correct" British spellings to their American equivalent.
To enable auto-"correction", run this command:
:Americanize
This creates [abbreviations][] for common words whose spelling differs between British and American English, such as colour/color, behaviour/behavior, organise/organize, and so on. If you type 'colour', Vim will auto-correct it to 'color'. The abbreviations applied by the :Americanize command are local to the active buffer.
This plugin depends on Tim Pope's [abolish][] plugin. If the :Abolish command isn't available, then the :Americanize command will do nothing.
Many of the abbreviations provided in this plugin were drawn from the Wikipedia article on the differences between British and American English.