Ⅰ. 插件描述
A Vim plugin for looking up words in an online thesaurusⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'beloglazov/vim-online-thesaurus'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'beloglazov/vim-online-thesaurus'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'beloglazov/vim-online-thesaurus'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/beloglazov/vim-online-thesaurus
Ⅳ. 文档说明
# Vim Online Thesaurus
This is a plugin for Vim allowing you to look up words in an online thesaurus,
which is at the moment configured to be http://thesaurus.com/
The plugin displays the definition of the word under the cursor and a list of
synonyms.

The credit for the original idea and code goes to Nick Coleman:
http://www.nickcoleman.org/
Installation
If you are using Vundle, just add the following line to your .vimrc:
Plugin 'beloglazov/vim-online-thesaurus'Then run :PluginInstall to install the plugin.
Note: Earlier versions required the "Bundle" keyword instead of plugin (i.e. :BundleInstall
and Bundle 'beloglazov/vim-online-thesaurus'). However,
this is deprecated and should not be used any longer.
Usage
The plugin provides the :OnlineThesaurusCurrentWord command to look up the
current word under the cursor in an online thesaurus. Alternatively, you can
look up any word with :Thesaurus word.
Internally, both commands make a request to http://thesaurus.com/, parse the
results, and display them in a vertical split in the bottom.
By default the :OnlineThesaurusCurrentWord command is mapped to<LocalLeader>K. If you haven't remapped <LocalLeader>, it defaults to \.
To close the split, just press q.
Configuration
If you want to disable the default key binding, add the following line to your
.vimrc:
let g:online_thesaurus_map_keys = 0Then you can map the :OnlineThesaurusCurrentWord command to anything you want
as follows:
nnoremap <your key binding> :OnlineThesaurusCurrentWord<CR>Enjoy!
Contributors
Big thanks to the following people who contributed to the development of this
plugin!
License
Copyright (c) Anton Beloglazov, Google Inc. Distributed under the Apache 2.0
License.