Browse Source

Fix readme, disable dict files by default

master
Maxim Likhachev 3 years ago
parent
commit
d58d56f78e
  1. 5
      README.md
  2. 2
      plugin/look-up.vim
  3. 4
      syntax/dict.vim

5
README.md

@ -1,6 +1,7 @@
**look-up** - vim-plugin for sdcv **look-up** - vim-plugin for sdcv
## Licence ## Licence
Copyright (C) 2009-2015, Maksim Likhachev, <envrm@yandex.ru> Copyright (C) 2009-2015, Maksim Likhachev, <envrm@yandex.ru>
This program is free software: you can redistribute it and/or modify This program is free software: you can redistribute it and/or modify
@ -17,11 +18,13 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
## Description ## Description
This script looks up a word under cursor in a dictionary using custom utility 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 such as sdcv (console version of StarDict program) and store the word into
text file with extension ".dict" in current directory (optionally). text file with extension ".dict" in current directory (optionally).
## Installation ## Installation
Put this file into your $HOME/.vim/plugin directory (our use Put this file into your $HOME/.vim/plugin directory (our use
Pathogen/Vundle/etc) and configure your own keymaps. Pathogen/Vundle/etc) and configure your own keymaps.
@ -37,9 +40,11 @@
> let g:sdcv_save = 1 > let g:sdcv_save = 1
## Usage ## Usage
:Dict(<word>) :Dict(<word>)
## Version ## Version
1.0 1.0
## Screenshot ## Screenshot

2
plugin/look-up.vim

@ -26,7 +26,7 @@ if !exists("g:sdcv_cmd")
endif endif
if !exists("g:sdcv_save") if !exists("g:sdcv_save")
let g:sdcv_save = 1 let g:sdcv_save = 0
endif endif
fun! OpenDictionary(cmd, ...) fun! OpenDictionary(cmd, ...)

4
syntax/dict.vim

@ -1,7 +1,7 @@
" Vim syntax file " Vim syntax file
" Language: stardict " Language: stardict
" Author: Lihachev Maxim " Author: Maksim Likhachev <envrm@yandex.ru>
" License: GPLv3 " License: GPL3
if version < 600 if version < 600
syntax clear syntax clear

Loading…
Cancel
Save