Skip to content

zdict/zdict.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zdict.vim version license

The goal of zdict.vim is to integrated with zdict - an online dictionary framework written in Python.

Usage

zdict.vim comes with some configurable key mappings:

  • Query

    let g:zdict_query_key = '<leader>z'
    • Move cursor on a word, or select many with visual mode, and <leader>z, zdict.vim gives you a split window to display the query result
  • Close zdict window

    let g:zdict_close_window_key = '<leader><leader>z'
    • Press <leader><leader>z in normal mode to close zdict window
    • You can also query same word/sentence again to the same thing
  • Open Configurations Window

    let g:zdict_configuration_key = '<leader>Z'
    • Change configurations on the fly, but remember to set them in your vimrc if you like them
  • Set default dictionary

    let g:zdict_default_dict = 'yahoo'
    • zdict have multiple dictionary backends, currently these are available
      • yahoo: Yahoo Dictionary
      • urban: Urban Dictionary
      • moe: 萌典
      • all: query all backends
  • Set Maximum zdict Window Size

    let g:zdict_max_window_width = 50
    • zdict.vim tries to get as more space as possible, and tries to leave 79 characters for user
  • Set Minimum zdict Window Size

    let g:zdict_max_window_width = 30
    • To prevent zdict window too thin, zdict.vim has to keep some spaces

Installation

  1. Install zdict
  2. Install zdict.vim with Vundle

    Bundle 'zdict/zdict.vim'
    • Run :PluginInstall in vim
  3. Tada! Everything should works fine. If not, please send me a issue

Versions

The version number of zdict.vim looks like this: <major>.<minor>.<patch>

For a user who installed zdict.vim,

  • Major version number changed: Public interface or default configurations may changed, check change log before upgrade
  • Minor version number changed: New feature added, and old feature should still work
  • Patch version number changed: Just upgrade, some bugs is fixed

Note: Vim completion is added in zdict.vim 0.3.4, which needs zdict newer than 8e8c07a.

Environment

Tested with vim 7.4.729

About

A vim plugin integrate with zdict - the last online dictionary framework you need.

Resources

License

Stars

Watchers

Forks

Packages

No packages published