This is a plugin for Vim allowing you to look up words on http://thesaurus.com/
This is a rewrite of Anton Beloglazov's Online Thesaurus using Vim's Python interface. Anton's plugin uses bash shell scripting, which might be a problem in some environments (ie., Windows).
The plugin displays the definition of the word under the cursor and a list of synonyms and antonyms.
The credit for the original idea and (part of) code and documentation effort goes to Anton Beloglazov and Nick Coleman.
If you are using Vundle, just add the following line to your .vimrc:
Bundle 'drougas/vim-pythesaurus'
Then run :BundleInstall to install the plugin.
The plugin provides the :PyThesaurusCurrentWord command to look up the current word under the cursor in an online thesaurus. Alternatively, you can look up any word with :PyThesaurus word.
Internally, both commands make a request to http://thesaurus.com/, parse the results, and display them in a vertical split in the bottom.
To close the split, just press q.
You can map the :PyThesaurusCurrentWord command to anything you want as follows:
nnoremap <your key binding> :PyThesaurusCurrentWord<CR>
For example, to bind \K:
nnoremap <unique> <LocalLeader>K :PyThesaurusCurrentWord<CR>
Enjoy!
Distributed under the same terms as Vim itself.
See :help license.
