Ⅰ. 插件描述
Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'koron/dicwin-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'koron/dicwin-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'koron/dicwin-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/koron/dicwin-vim
Ⅳ. 文档说明
# dicwin.vim - Dictionary window
Usage
- 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>
Shortcuts
<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
- Or if you set
g:dicwin_mapleaderinstead, it works with that.
OTHERS
UNDER UTF-8/UTF-8環境での利用 (only Japanese)
配布されているgene.txt内に不具合があり、encoding=utf-8の環境で利用すると文字化
けを起こします。これを回避するにはgene.txtを手動で編集して(該当箇所を削除)して
ください。
Vimでは以下のとおり操作をすることで該当箇所を削除できます。参考にしてください。
:e ++enc=cp932 gene.txt
:91697,91698d
:w!<!-- vim:set ts=8 sts=2 sw=2 tw=0 et: -->