sponsor Vim development Vim logo Vim Book Ad

ConsultADict.vim : ConsultADict is plugin that provides easy way to consult a dictionary

 script karma  Rating 0/0, Downloaded by 660  Comments, bugs, improvements  Vim wiki

created by
Dmitry Ivanov
script type
Consult A Dictionary is plugin that provides easy (IMHO) way to consult
dictionaries (for example for translate words). It provides the following
    * Search for words or phrases in dictionaries and displaying
      dictionary entries in a separate window
    * Use of Ex commands and hence shell-commands (for example
      "r!/usr/bin/sdcv -n $$$_words") for displaying dictionary entries.
    * Search in dictionaries for:
        - given word or phrase (:ConsultADict <words>);
        - the word under the cursor (:ConsultADict or :ConsultADictToggle);
        - the current selection in visual mode (:ConsultADict or :ConsultADictToggle)
    * Search history (for current script run time)

For more information see :help ConsultADict
install details
Extract the zip archive into your runtime dicrectory (for example ~/.vim or
~/vimfiles for Windows). The archive contains the following two files:

Next, to finish installing the help file run:
    :helptags <your_runtime_directory>/doc

It needs to add at least one command to list of the commands for displaying
dictionary entries before start using plugin.  Variable ConsultADict_cmd is
used to define that list (you can set it in your vimrc file).

Ex commands and hence shell-commands (r!<shell_command>) are used for
displaying dictionary entries.
As an example, let's use sdcv (simple, cross-platform text-base utility for
work with dictionaries) to define command for displaying dictionary entries:

    :let ConsultADict_cmd = ["r!/usr/bin/sdcv -n $$$_words"]

$$$_words will be replaced with word or phrase to look it up in dictionaries.

For more information see :help ConsultADict_cmd and :help ConsultADictScripts

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
consultadict.zip 0.9 2014-03-15 7.0 Dmitry Ivanov Bugfix: now plugin really displays dictionary entry in separate window
consultadict.zip 0.801 2014-03-10 7.0 Dmitry Ivanov An unfortunate misprint was correted in documetation (ConsultADict.txt, Section 2 - Instalation)
ip used for rating:

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.