Finding meaning in your Vim
Vimdictive is a plugin for dict.org style dictionary and thesaurus lookups from within Vim.
-
<leader>dm - Show meaning of word under cursor in the Preview Window.
-
<leader>ds - Show synonyms for word under cursor in the Preview Window.
-
<leader>df - Set the synonym regex filter.
-
<leader>dr - Set the synonym rhyme filter.
NoteThe rhyme filter depends on having rhyme installed.
-
<enter> - Show meaning of word under cursor in the Vimdictive browser (window).
-
<backspace> - Show synonyms for word under cursor in the Vimdictive browser.
-
q - Close the Vimdictive browser.
-
<F5> - Refresh Vimdictive browser with most recent query results.
By default, Vimdictive accesses http://dict.org/ for dictionary
and thesaurus lookups. You can customise this with a setting in
your ~/.vimrc
like:
let vimdictive_dicts = { \ 'dictionary' : ['localhost', ['gcide']], \ 'thesaurus' : ['localhost', ['moby-thesaurus']] \ }
The curl approach in this plugin was borrowed from the vim-dict plugin.