|
|
|
@ -1,6 +1,7 @@
@@ -1,6 +1,7 @@
|
|
|
|
|
**look-up** - vim-plugin for sdcv |
|
|
|
|
|
|
|
|
|
##Licence |
|
|
|
|
## Licence |
|
|
|
|
|
|
|
|
|
Copyright (C) 2009-2015, Maksim Likhachev, <envrm@yandex.ru> |
|
|
|
|
|
|
|
|
|
This program is free software: you can redistribute it and/or modify |
|
|
|
@ -16,33 +17,37 @@
@@ -16,33 +17,37 @@
|
|
|
|
|
You should have received a copy of the GNU General Public Licence |
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
|
|
|
|
|
|
|
|
##Description |
|
|
|
|
This script looks up a word under cursor in a dictionary using custom utility |
|
|
|
|
such as sdcv (console version of StarDict program) and store the word into |
|
|
|
|
text file with extension ".dict" in current directory (optionally). |
|
|
|
|
## Description |
|
|
|
|
|
|
|
|
|
This script looks up a word under cursor in a dictionary using custom utility |
|
|
|
|
such as sdcv (console version of StarDict program) and store the word into |
|
|
|
|
text file with extension ".dict" in current directory (optionally). |
|
|
|
|
|
|
|
|
|
## Installation |
|
|
|
|
|
|
|
|
|
##Installation |
|
|
|
|
Put this file into your $HOME/.vim/plugin directory (our use |
|
|
|
|
Pathogen/Vundle/etc) and configure your own keymaps. |
|
|
|
|
Put this file into your $HOME/.vim/plugin directory (our use |
|
|
|
|
Pathogen/Vundle/etc) and configure your own keymaps. |
|
|
|
|
|
|
|
|
|
For example: |
|
|
|
|
For example: |
|
|
|
|
|
|
|
|
|
> nmap fw :call Dict(expand("<cword>"))<CR> |
|
|
|
|
> vnoremap fw :call Dict(@*)<CR> |
|
|
|
|
|
|
|
|
|
The next two option set sdcv's command line and enables saving the words |
|
|
|
|
into file: |
|
|
|
|
The next two option set sdcv's command line and enables saving the words |
|
|
|
|
into file: |
|
|
|
|
|
|
|
|
|
> let g:sdcv_cmd = "sdcv -n " |
|
|
|
|
> let g:sdcv_save = 1 |
|
|
|
|
|
|
|
|
|
##Usage |
|
|
|
|
## Usage |
|
|
|
|
|
|
|
|
|
:Dict(<word>) |
|
|
|
|
|
|
|
|
|
##Version |
|
|
|
|
## Version |
|
|
|
|
|
|
|
|
|
1.0 |
|
|
|
|
|
|
|
|
|
##Screenshot |
|
|
|
|
## Screenshot |
|
|
|
|
|
|
|
|
|
![](https://code.envrm.info/src/look-up/raw/branch/master/look-up.png) |
|
|
|
|
|
|
|
|
|