From bbfa039679b40526d16c51f50429d5673aca19b8 Mon Sep 17 00:00:00 2001 From: Maxim Likhachev Date: Thu, 24 Jul 2014 16:08:22 +0600 Subject: [PATCH] =?UTF-8?q?vim,=20sdcv:=20=D0=B7=D0=B0=D0=BF=D0=B8=D1=81?= =?UTF-8?q?=D1=8C=20=D1=81=D0=BB=D0=BE=D0=B2=D0=B0=D1=80=D0=BD=D1=8B=D1=85?= =?UTF-8?q?=20=D1=81=D0=BB=D0=BE=D0=B2=20=D0=B2=20=D0=BE=D1=82=D0=B4=D0=B5?= =?UTF-8?q?=D0=BB=D1=8C=D0=BD=D1=8B=D0=B5=20=D1=84=D0=B0=D0=B9=D0=BB=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- etc/soft/vim/vim/+plugins/help+src/plugin/help+src.vim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/etc/soft/vim/vim/+plugins/help+src/plugin/help+src.vim b/etc/soft/vim/vim/+plugins/help+src/plugin/help+src.vim index e55652c..f0e92c4 100644 --- a/etc/soft/vim/vim/+plugins/help+src/plugin/help+src.vim +++ b/etc/soft/vim/vim/+plugins/help+src/plugin/help+src.vim @@ -150,6 +150,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" + 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