Skip to content

bootleq/vim-ref-bingzh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

Repository files navigation

vim-ref-bingzh

Bing dictionary (English/Chinese) source for vim-ref.

必应字典 http://cn.bing.com/dict/

Requirements

Screenshot

screenshot

Show suggestions: snap-suggestion

Usage Example

  • Mapping <Leader>K to translate current word:

    nnoremap <silent> <Leader>K :call ref#jump('normal', 'bingzh')<CR>
    xnoremap <silent> <Leader>K :call ref#jump('visual', 'bingzh')<CR>
  • Tranditional Chinese words must be converted into Simplified Chinese before feeding to bing dictionary. This requires a setting to tell where the OpenCC t2s.json config file is:

    let g:ref_bingzh_opencc_config = '/usr/share/opencc/t2s.json'
  • If you installed opencc in default location, just tell which config should be enough:

    let g:ref_bingzh_opencc_config = 't2s.json'

About

vim-ref source for Bing dictionary

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published