Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wolandark/vimdict
A Simple Wrapper Over The Dict CLI Utility For Vim9
https://github.com/wolandark/vimdict
vim vim-plugin vim9-plugin vim9script
Last synced: 3 months ago
JSON representation
A Simple Wrapper Over The Dict CLI Utility For Vim9
- Host: GitHub
- URL: https://github.com/wolandark/vimdict
- Owner: wolandark
- License: gpl-3.0
- Created: 2024-06-21T04:58:54.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2024-06-23T02:39:00.000Z (7 months ago)
- Last Synced: 2024-11-01T00:04:53.140Z (3 months ago)
- Topics: vim, vim-plugin, vim9-plugin, vim9script
- Language: Vim Script
- Homepage:
- Size: 38.1 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-vim9 - vimdict
README
# VimDict
A Simple Wrapper Over The Dict CLI Utility For Vim9# Dependency
- `dict`
- `+vim9script`
- `+popupwin`This plugin is written in vim9script and utilizes the popup feature of Vim, therefore it requires a vim 9.0+ compiled with +popupwin option.
You can check this in Vim with `echo has('popupwin')` and `echo has('vim9script')`.
If Vim returns `1`, then you have what this plugin needs.### Install dict on your distro:
`apt install dict``pacman -S dict`
# Install VimDict
use your favorite plugin manager,
or:
```
git clone https://github.com/wolandark/vimdict.git ~/.vim/pack/plugins/start/vimdict
```or for on-demand loading of the plugin:
```
git clone https://github.com/wolandark/vimdict.git ~/.vim/pack/plugins/opt/vimdict
```
for on-deman loading do:`:packadd vimdict`
`:Dict`
# Usage
Put your cursor on a word and issue `:Dict`, (No need to select visually or copy the word, that's just for the demo). Move the cursor to dismiss the popup or press `Esc`.# Configuration
You can specify colors for the popup in vimrc, othereise vimdict will use the default highlight group which creates a white on black popup.```
let g:dict_popup_fgcolor = 'Black'
let g:dict_popup_bgcolor = 'White'
```
Optionally, define a mapping to call `:Dict``nnoremap :Dict`
# Demo
![output1](https://github.com/wolandark/vimdict/assets/107309764/c414e1c6-8700-4da1-8832-46c732431a2f)#### If you have suggestions, or find issues, feel free to let me know
# Enjoy