Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/eschao/vim-dict
- Owner: eschao
- License: apache-2.0
- Created: 2016-12-29T09:09:38.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-12T13:35:55.000Z (over 7 years ago)
- Last Synced: 2024-11-05T11:37:14.567Z (about 2 months ago)
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.