youdao.dict


Ⅰ. 插件描述

vim plugin for youdao dict translation

Ⅱ. 基本信息

创建日期:  2012-04-08
使用用户:  2
Github星:  1
插件作者:  howl anderson

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/howlanderson/youdao.dict

Ⅳ. 文档说明

#what is youdao.dict
yuodao.dict is a vim plugin for translation english to simplified chinese for chinese people

how to install

go to plugin dir. put the file youdao.vim and youdao dir to your vim plugin dir.
modified the youdao.py in youdao dir:

6 # put your youdao api key here, you should keep it secret
7 youdao_key = ''
8 # put your youdao api keyfrom here
9 youdao_keyfrom = ''

you should request the youdao translation api key and add to the youdao.py
if you do not want request the youdao key, you can install the pyquery and lxml for python
this plugin also work.

version 3

  1. add support for local dict "sdcv"
  2. del the function that you can without key to use youdao api.
  3. now, if you want use youdao dict, you should use the key

添加新评论