Browse Source

vim: sdcv

master
Maxim Likhachev 11 years ago
parent
commit
1bea9ceb0a
  1. 4
      etc/soft/vim/vim/+plugins/help+src/plugin/help+src.vim

4
etc/soft/vim/vim/+plugins/help+src/plugin/help+src.vim

@ -149,13 +149,11 @@ endfun @@ -149,13 +149,11 @@ endfun
" }}}
" {{{ The Dict(word) function call a dict command for word
fun! Dict(word)
let dict = $HOME . "/.shellrc/var/memory/dictionary"
if filereadable(expand('%:p'))
let dict = expand('%:p') . ".dict"
call writefile(readfile(dict)+[a:word], dict)
endif
call writefile(readfile(dict)+[a:word], dict)
call OpenHelpWin("sdcv -n --data-dir ~/.shellrc/etc/soft/sdcv/dictionaries/ ".a:word." 2>/dev/null", 'dict', a:word)
normal G2kzvztk0
endfun

Loading…
Cancel
Save