ccspellcheck.vim


Ⅰ. 插件描述

CamelCase spell checker for vim.

Ⅱ. 基本信息

创建日期:  2017-08-05
使用用户:  1
Github星:  8
插件作者:  kamykn

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# CCSpellCheck.vim
CCSpellCheck.vim is checking camelcase word spell.

1.Installation

Installation with NeoBundle

NeoBundle 'kamykn/CCSpellCheck.vim'

2.Useage

2.i. Options.

CCSpellChecker offers the following options.

" Use CCSpellCheck.vim. (1 / 0) (default 1)
let g:CCSpellCheckEnable = 1

" Setting for start checking min length of character. (default 4)
let g:CCSpellCheckMinCharacterLength = 4

" Setting for max suggest words list length. (default 50)
let g:CCSpellCheckMaxSuggestWords = 50


" Override highlight group name. (default 'CCSpellBad')
let g:CCSpellCheckMatchGroupName = 'CCSpellBad'

" Override highlight setting.
highlight CCSpellBad cterm=reverse ctermfg=magenta gui=reverse guifg=magenta

2.ii. Correct bad spell.

Move the cursor over the wrong spelling and enter the following commands

Z=

2.iii. Add word as good spell list.

Add the selected word in Visual-mode with the following command.
CCSpellcheck use 'spell' commands provided by vim as default.

FYI:
http://vim-jp.org/vimdoc-en/spell.html#zg

# Add selected word to spellfile
# => zg
Zg

# => zw
Zw

# => zug
Zug

# => zuw
Zuw

# Add selected word to the internal word list
# => zG
ZG

# => zW
ZW

# => zuG
ZUG

# => zuW
ZUW

3.Articles (in Japanese)

Vimでキャメルケースのスペルチェックをするプラグインを作った
https://qiita.com/kamykn/items/ce536aff00f44960e811

添加新评论