Ⅰ. 插件描述
Vim plugin counterpart to BashsaurusⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'danprince/vimsaurus'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'danprince/vimsaurus'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'danprince/vimsaurus'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/danprince/vimsaurus
Ⅳ. 文档说明
# vimsaurus
Vim plugin complement to Bashsaurus.
Example
Install
Vimsaurus requires that the Bashsaurus script can be found on your PATH.
NeoBundle 'danprince/vimsaurus'
" or
Vundle 'danprince/vimsaurus'
" or
Plug 'danprince/vimsaurus'Commands
The plugin defines the following commands.
:FindSynonym
Replace the word under the cursor with a synonym.
:NextSynonym
Cycle to the next synonym for the word under the cursor.
Usage
Typing the commands is time consuming, so the recommended way to use this plugin is to map the commands to leader keys. For example:
nnoremap <Leader>t :FindSynonym<CR>
nnoremap <Leader>r :NextSynonym<CR> 