|
|
|
@ -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 |
|
|
|
|