Code Monkey home page Code Monkey logo

vimdictive's Introduction

vimdictive

Finding meaning in your Vim

Tip
If you like vimdictive and want to share the W00t!, Iโ€™m grateful for tips or beverages.

Vimdictive is a plugin for dict.org style dictionary and thesaurus lookups from within Vim.

Global Maps:
  • <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.

    Note
    The rhyme filter depends on having rhyme installed.
Maps from within the Preview Window:
  • <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.

Configuration

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.

vimdictive's People

Contributors

dahu avatar raimondi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

vimdictive's Issues

Looking up a word in the second Tab

Dear Barry,

Many thanks for the outstanding and super handy vim plugin! Until recently, I encounter an issue when editing markdown file.

Error Description

Everything runs well in buffers in the first tab. But when I activate vimdictive in the second Tab. The following error prompts:

    Error detected while processing function PreviewTerm:
    line    5:
    E121: Undefined variable: t:term_stack
    E116: Invalid arguments for function add

Environment

NVIM v0.2.2
Build type: RelWithDebInfo
LuaJIT 2.0.4
Compilation: /usr/bin/x86_64-linux-gnu-gcc -g -O2 -fPIE
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=
2 -DDISABLE_LOG -Wdate-time -D_FORTIFY_SOURCE=2 -Wconversion -U_FORTIFY_SOURCE
-D_FORTIFY_SOURCE=1 -DNVIM_UNIBI_HAS_VAR_FROM -O2 -g -DMIN_LOG_LE
VEL=3 -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes
-std=gnu99 -Wvla -fstack-protector-strong -fdiagnostics-color=aut
o -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE
-I/build/neovim-HJnLxJ/neovim-0.2.2/build/config
-I/build/neovim-HJnLxJ/neovim-0.2.2/src -I/usr
/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include
-I/usr/include -I/usr/include -I/build/neovim-HJnLxJ/neovim-0.2.2/build/src
/nvim/auto -I/build/neovim-HJnLxJ/neovim-0.2.2/build/include
Compiled by [email protected]

Thank you in advance!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.