From 1bea9ceb0a45ac7dba3c771d41e8fe7a960ba5c7 Mon Sep 17 00:00:00 2001 From: Maxim Likhachev Date: Tue, 5 Aug 2014 09:12:12 +0600 Subject: [PATCH] vim: sdcv --- etc/soft/vim/vim/+plugins/help+src/plugin/help+src.vim | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 f0e92c4..4ff959f 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 @@ -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