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