Saturday, June 15, 2013

ANN: vim-online-thesaurus -- a Vim plugin for looking up words in an online thesaurus

Hi All,

vim-online-thesaurus -- is a new plugin for Vim allowing you to look up words in an online thesaurus, which is at the moment configured to be http://thesaurus.com/ It's lightweight and does not require you to store a database of words locally. The plugin displays the definition of the word under the cursor and a list of synonyms, as shown on the screenshot: 


Homepage: https://github.com/beloglazov/vim-online-thesaurus

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: 

Bundle 'beloglazov/vim-online-thesaurus'

Then run `:BundleInstall` to install the plugin. 


## Usage 

The plugin provides the `:OnlineThesaurusLookup` command to look up the current word under the cursor in an online thesaurus. The command makes a request to http://thesaurus.com/, parses results, and displays them in a vertical split in the bottom. By default the `:OnlineThesaurusLookup` 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 = 0

Then you can map the `:OnlineThesaurusLookup` command to anything you want as follows: 

nnoremap <your key binding> :OnlineThesaurusLookup<CR>

Enjoy!


Best regards,
Anton

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
 
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment