https://github.com/timothyye/vim-ydict
A Vim plugin for ydict
https://github.com/timothyye/vim-ydict
vim-ydict vim-youdao ydict youdao
Last synced: 11 months ago
JSON representation
A Vim plugin for ydict
- Host: GitHub
- URL: https://github.com/timothyye/vim-ydict
- Owner: TimothyYe
- License: mit
- Created: 2019-03-06T03:17:26.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-08T06:49:25.000Z (about 7 years ago)
- Last Synced: 2025-05-19T12:49:09.344Z (about 1 year ago)
- Topics: vim-ydict, vim-youdao, ydict, youdao
- Language: Vim script
- Homepage:
- Size: 6.84 KB
- Stars: 6
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vim-ydict
`vim-ydict` is a Vim plugin for [ydict](https://github.com/TimothyYe/ydict), it helps you to query words from Vim.
## Installation
vim-ydict relies on [ydict](https://github.com/TimothyYe/ydict), to use it, you need to install ydict first.
Use Homebrew to install ydict:
```bash
brew tap timothyye/tap
brew install timothyye/tap/skm
```
Or you can download it from the [release](https://github.com/TimothyYe/ydict/releases) page.
Now you can install `vim-ydict`.
### Plug
```text
Plug 'TimothyYe/vim-ydict'
```
## Settings
`vim-ydict` supports 3 different query modes:
1. Query words from current cursor position, supported by command `:Ydc`.
2. Query selected words from the select mode, supported by command `:Ydv`.
3. Query words from user's input, supported by command `:Yde`.
## Examples
Edit your `vimrc` file, add example settings.
1. Press `Ctrl+t` to query selected words:
```text
vnoremap :Ydv
```
2. Use `+yc` to query words from current cursor position:
```text
nnoremap yc :Ydc
```
3. Use `+yd` to input the words you want to query:
```text
noremap yd :Yde
```
## Demo

## License
The MIT License (MIT)