Ⅰ. 插件描述
Cycles spelling suggestions under the cursorⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'tweekmonster/spellrotate-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'tweekmonster/spellrotate-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'tweekmonster/spellrotate-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/tweekmonster/spellrotate.vim
Ⅳ. 文档说明
# spellrotate.vim
Cycles spelling suggestions under the cursor.

Features
- The
'[and']marks are used to keep track of the text being worked on.
Making a change elsewhere will effectively "accept" the suggested change. - Accepts a count.
- Can cycle suggestions in the opposite direction.
- Repeatable using vim-repeat.
- Undo once to restore the original word regardless of how many suggestions
have been cycled. Works in visual mode to get suggestions for split words (e.g. "head line" ->
"headline")- Uses
'<and'>marks to keep track of the text. - Note: Doesn't seem to be repeatable with vim-repeat.
- Uses
- The original word being changed is kept in the unnamed register.
- The original, previous, current, and next suggestions are displayed in the
command line. - Naive command
:SpellRotateSubAllto replace all text matching the original
with the current suggestion.
Usage
You will need to map the keys yourself:
nmap <silent> zn <Plug>(SpellRotateForward)
nmap <silent> zp <Plug>(SpellRotateBackward)
vmap <silent> zn <Plug>(SpellRotateForwardV)
vmap <silent> zp <Plug>(SpellRotateBackwardV)Note: You must use nmap and vmap.
Note: The above keys are only examples! I'm sure you already hate them.
Spelling, folding, and a handful of miscellaneous motions are prefixed by z.
Nobody would be happy with a default key map set by this plugin.
License
MIT