The goal of zdict.vim is to integrated with zdict - an online dictionary framework written in Python.
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
- Move cursor on a word, or select many with visual mode, and
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
- Press
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 Dictionaryurban
: Urban Dictionarymoe
: 萌典all
: query all backends
- zdict have multiple dictionary backends, currently these are available
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
Install zdict
Install zdict.vim with Vundle
Bundle 'zdict/zdict.vim'
- Run
:PluginInstall
in vim
- Run
Tada! Everything should works fine. If not, please send me a issue
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
.
Tested with vim 7.4.729