Giter Site home page Giter Site logo

vim-sdcv's Introduction

vim-sdcv

A not-invented-here sdcv plugin for Vim.

Usage

sdcv.vim defines the command Sdcv, which accepts words and phrases as arguments. Multiple words can be searched at once. For example, the command

Sdcv star planet moon

will show the definitions of "star", "planet", and "moon". Multi-word phrases (e.g., "rain cats and dogs") can also be passed, but spaces need to be escaped (and not quoted):

Sdcv rain\ cats\ and\ dogs

It is also possible to use sdcv as the 'keywordprg' (so that word definitions can be looked up by pressing K in normal mode):

set keywordprg=:Sdcv

Custom Dictionaries

The command Sdcv passes all its arguments to the sdcv executable directly and thus custom dictionaries can also be selected using the --use-dict (or -u) option like one would usually do with sdcv. Alternatively, the global variable g:sdcv_args can be used to specify the arguments passed to sdcv, e.g.,

let g:sdcv_args = [
      \ '--utf8-input',
      \ '--utf8-output',
      \ '--use-dict',
      \ 'Moby Thesaurus',
      \ 'Wordnet'
      \ ]

Filters

sdcv's output may not always be very pretty and thus it makes sense to filter it. The variable g:sdcv_filter can be defined to use a custom filter program, e.g.,

let g:sdcv_filter = 'sdcv-prettify'

License

Public domain. See the file UNLICENSE for more details.

vim-sdcv's People

Contributors

manu-mannattil avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

vim-sdcv's Issues

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.