Browse Source

bash, vim, sdcv: добавление словарного слова в файл

master
Maxim Likhachev 11 years ago
parent
commit
7be0e709ef
  1. 6
      etc/shell/bash/aliases
  2. 2
      etc/soft/vim/vim/+plugins/help+src/plugin/help+src.vim

6
etc/shell/bash/aliases

@ -484,6 +484,12 @@ gitnew() {
git branch experimental git branch experimental
} }
#- Перевод слов/выражений с сохранением слова в файл
t() {
echo "$*" >> $SHELLRC/var/memory/dictionary
sdcv "$*"
}
#- Vimwiki #- Vimwiki
alias ,ww="vim -c VimwikiIndex" #noindex alias ,ww="vim -c VimwikiIndex" #noindex

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

@ -149,6 +149,8 @@ endfun
" }}} " }}}
" {{{ The Dict(word) function call a dict command for word " {{{ The Dict(word) function call a dict command for word
fun! Dict(word) fun! Dict(word)
let dict = $HOME . "/.shellrc/var/memory/dictionary"
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) call OpenHelpWin("sdcv -n --data-dir ~/.shellrc/etc/soft/sdcv/dictionaries/ ".a:word." 2>/dev/null", 'dict', a:word)
normal G2kzvztk0 normal G2kzvztk0
endfun endfun

Loading…
Cancel
Save