Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/eschao/vim-dict

Vim dictionary plugin - using online Bing dictionary
https://github.com/eschao/vim-dict

Last synced: 6 days ago
JSON representation

Vim dictionary plugin - using online Bing dictionary

Awesome Lists containing this project

README

        

## Introduction
This is my first vim plugin to implement a simple function: using online **Bing** dictionary to translate **English** to **Chinese** and vice verse!

The main intention why I wrote this plugin is for practicing and learning how to use Python in Vimscript. I'm sorry that **You Cannot** get other languages translation from it since there is no free dictionary API available.

## Installation

Copy **plugin** directory into your **~/.vim/plugin** or use plugin management, such as: **[Vundle](https://github.com/VundleVim/Vundle.vim)**

## Usage

You need to map your favor keys for the below three functions:

* Look up the word under the cursor, the map key looks like:

```vim
nnoremap lw :call dict#LookupCWord()
```

* Look up you inputted English text, the map key looks like:

```vim
nnoremap lei :call dict#LookupEnglish()
```

* Look up you inputted Chinese text, the map key looks like:

```vim
nnoremap lci :call dict#LookupChinese()
```

## License
This project is licensed under the Apache License Version 2.0.