dicwin-vim


Ⅰ. 插件描述

Ⅱ. 基本信息

创建日期:  2011-12-08
使用用户:  7
Github星:  4
插件作者:  MURAOKA Taro

Ⅲ. 安装方法

使用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

  1. Install this plugin into your vim.
  2. Get dictionary file (gene.txt).

  3. Put gene.txt at ~/.vim/dict/ (or ~/vimfiles/dict
  4. 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>c Close dictionary window.
  • <C-k>n Search next. (with last word)
  • <C-k>p Search previous. (with last word)
  • <C-k>w Jump to dictionary window (if exists)

If you set g:mapleader, it works with <leader><C-K> and others with the

  1. Or if you set g:dicwin_mapleader instead, 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: -->

添加新评论