Vim plugin for sdcv.
vim
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Maxim Likhachev d58d56f78e Fix readme, disable dict files by default 5 months ago
plugin Fix readme, disable dict files by default 5 months ago
syntax Fix readme, disable dict files by default 5 months ago
COPYING Added GPLv3 license 3 years ago
CoC.md Added Code of Conduct 3 years ago
README.md Fix readme, disable dict files by default 5 months ago
look-up.png fix 7 years ago

README.md

look-up - vim-plugin for sdcv

Licence

Copyright (C) 2009-2015, Maksim Likhachev, <envrm@yandex.ru>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public Licence as published by
the Free Software Foundation, either version 3 of the Licence, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public Licence for more details.

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).

Installation

Put this file into your $HOME/.vim/plugin directory (our use Pathogen/Vundle/etc) and configure your own keymaps.

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:

> let g:sdcv_cmd = "sdcv -n "
> let g:sdcv_save = 1

Usage

:Dict()

Version

1.0

Screenshot