From 83d328bcb8746b70f12220fc1e4f4e259b321663 Mon Sep 17 00:00:00 2001 From: Maxim Likhachev Date: Sun, 30 Dec 2018 16:28:22 +0500 Subject: [PATCH] vim: :w, python-conceal --- etc/shell/bash/aliases | 9 +++++++++ etc/soft/vim/vim/+plugins/goyo.vim | 1 + etc/soft/vim/vim/+plugins/python-conceal | 1 + etc/soft/vim/vimrc | 15 +++++++++++++++ 4 files changed, 26 insertions(+) create mode 160000 etc/soft/vim/vim/+plugins/goyo.vim create mode 160000 etc/soft/vim/vim/+plugins/python-conceal diff --git a/etc/shell/bash/aliases b/etc/shell/bash/aliases index 69824db..edb98fd 100755 --- a/etc/shell/bash/aliases +++ b/etc/shell/bash/aliases @@ -200,6 +200,15 @@ phps() { #- Vim alias :e="vim" #noindex +#- Написание текстов в Vim +write() { + urxvtc -fn 'xft:TrixiePro:pixelsize=20' \ + -e bash -c "vim '+colorscheme $1' '+Goyo 60%' $2" +} +alias :w="write OneHalfDark" #noindex +alias :wl="write OneHalfLight" #noindex +alias :wd="write OneHalfDark" #noindex + #- Закладки web-браузера alias bookmarks="vim $SHELLRC/var/www/urls" #noindex diff --git a/etc/soft/vim/vim/+plugins/goyo.vim b/etc/soft/vim/vim/+plugins/goyo.vim new file mode 160000 index 0000000..5b8bd03 --- /dev/null +++ b/etc/soft/vim/vim/+plugins/goyo.vim @@ -0,0 +1 @@ +Subproject commit 5b8bd0378758c1d9550d8429bef24b3d6d78b592 diff --git a/etc/soft/vim/vim/+plugins/python-conceal b/etc/soft/vim/vim/+plugins/python-conceal new file mode 160000 index 0000000..d7a6163 --- /dev/null +++ b/etc/soft/vim/vim/+plugins/python-conceal @@ -0,0 +1 @@ +Subproject commit d7a6163f794500447242df2bedbe20bd751b92da diff --git a/etc/soft/vim/vimrc b/etc/soft/vim/vimrc index c920b86..85e1704 100644 --- a/etc/soft/vim/vimrc +++ b/etc/soft/vim/vimrc @@ -851,5 +851,20 @@ vmap fw ,qqgv:call Dict(@*) let g:used_javascript_libs = 'jquery,angularjs,angularui,angularuirouter' " }}} +" languagetool {{{ +" +function LTCheck(ltl) + let g:languagetool_win_height=-1 + let g:languagetool_lang=a:ltl + echo ' [*]' + execute 'LanguageToolCheck' + execute 'lopen' +endfunction + +nmap lr :call LTCheck("ru") +nmap le :call LTCheck("en") +nmap ls :call LTCheck("sr") +" }}} + " }}}###########################################################################