macdict-vim


Ⅰ. 插件描述

use internal dictionaries of Mac by Vim

Ⅱ. 基本信息

创建日期:  2013-09-08
使用用户:  17
Github星:  14
插件作者:  modsound

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'modsound/macdict-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'modsound/macdict-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'modsound/macdict-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/modsound/macdict-vim

Ⅳ. 文档说明

macdict-vim

You can consult MacOS X internal dictionaries from Vim by this plugin.

INSTALL

NeoBundle 'modsound/macdict-vim.git'

COMPILE (If you like)

$ cd ~/.vim/bundle/macdict.vim/autoload/
$ make

PROVIDED COMMAND

:MacDict
-> Search an argument word with Japanese-English dictionary.
:MacDictCWord
-> Search the word under the cursor with Japanese-English dictionary.
:MacDictEnglish
-> Search an argument word with American English Dictionary.
:MacDictThesaurus
-> Search an argument word with American English Thesaurus dictionary.
:MacDictFrench
-> Search an argument word with French Dictionary.
:MacDictGerman
-> Search an argument word with German Dictionary.
:MacDictClose
-> Close output buffer.

CONFIG

You can change layout and window size through global variable in your .vimrc.

let g:macdict_window_size = 'botright 8split'

添加新评论