Browse Source

vim, sdcv: запись словарных слов в отдельные файлы

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

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

@ -150,6 +150,11 @@ endfun @@ -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

Loading…
Cancel
Save