Vimchant


Ⅰ. 插件描述

Fast on-the-fly spell-checker based on Enchant

Ⅱ. 基本信息

创建日期:  2008-08-17
使用用户:  12
Github星:  1
插件作者:  Teemu Likonen

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

Vim 7.0 introduced excellent spell-checking features which made external spell-checker plugins pretty much obsolete. Unfortunately not all languages can be supported through Vim’s dictionary format. Either the language is morphologically too complex or better custom solutions exist already for some languages—solutions which are not compatible with Vim’s spelling checker. Finnish, for example, is a language which doesn’t currently benefit from Vim’s spell-checking features.

This plugin (Vimchant) provides a simple but fast on-the-fly spelling checker which uses Enchant as its back-end program. Enchant is a spell-checker library and utility included in modern GNU/Linux systems. Enchant itself is only a front-end for many different spell-checkers, including Voikko, Zemberek, Hunspell, Hspell, Uspell, Myspell, Aspell and Ispell. All the spell-checkers and languages which can be supported through Enchant are available to Vim through this plugin.

Manual for Vimchant is included, just type

    :help vimchant.txt

The most interesting commands are ss (spell-checker on/off) and sl (change language). The default interval period before running the spell-check is rather long (4 seconds). To make the spell-checker respond faster (1 second, for example) add the following line to your .vimrc file:

    set updatetime=1000

See the manual for more info. See also the Enchant homepage:

    http://www.abisource.com/projects/enchant/

添加新评论