Bing dictionary (English/Chinese) source for vim-ref.
- vim-ref by thinca
curl
ORwget
- webapi-vim by mattn
- wwwrenderer-vim by mattn
- OpenCC (optional, for 簡繁轉換 only) by BYVoid
-
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'