- Install this plugin into your vim.
- Get dictionary file (gene.txt). * Download from http://www.namazu.org/~tsuchiya/sdic/data/gene.html * Convert it to UTF-8, if you prefer 'encoding=utf-8' (see more below)
- Put gene.txt at ~/.vim/dict/ (or ~/vimfiles/dict
- Open a document and set cursor on an english word then type
<C-k><C-k>Search word under cursor.<C-k>/Search prompted word.<C-k>cClose dictionary window.<C-k>nSearch next. (with last word)<C-k>pSearch previous. (with last word)<C-k>wJump to dictionary window (if exists)
If you set g:mapleader, it works with <leader><C-K> and others with the
mapleader. Or if you set g:dicwin_mapleader instead, it works with that.
配布されているgene.txt内に不具合があり、encoding=utf-8の環境で利用すると文字化 けを起こします。これを回避するにはgene.txtを手動で編集して(該当箇所を削除)して ください。
Vimでは以下のとおり操作をすることで該当箇所を削除できます。参考にしてください。
:e ++enc=cp932 gene.txt
:91697,91698d
:w!