1
0
Fork 0

change in plugin set for vim + fixkb as a function, gotta do both anyway

This commit is contained in:
Von Random 2016-08-22 12:27:33 +03:00
parent 135bbd5b5e
commit acc0aa52ac
2 changed files with 6 additions and 4 deletions

View file

@ -63,8 +63,6 @@ alias fixterm='printf "c"'
alias vi='command vim' alias vi='command vim'
alias pg-linux-client='command sudo -u postgres psql' alias pg-linux-client='command sudo -u postgres psql'
alias mysql='mysql --sigint-ignore' alias mysql='mysql --sigint-ignore'
alias kblayouts='setxkbmap -layout us,ru -variant altgr-intl,typewriter -option ctrl:nocaps,grp:win_space_toggle,grp_led:caps,compose:menu'
alias kbfix='xkbcomp $DISPLAY - | egrep -v "group . = AltGr;" | xkbcomp - $DISPLAY'
# iconv # iconv
alias iconvwk='command iconv -c -f cp1251 -t koi8-r' alias iconvwk='command iconv -c -f cp1251 -t koi8-r'
@ -135,6 +133,11 @@ tmuxrc() { tmux source-file "${HOME}/.tmux.conf"; tmux display-message "Config r
if [[ -z "${DISPLAY}" ]]; then if [[ -z "${DISPLAY}" ]]; then
x() { exec xinit -- :0 -nolisten tcp vt$XDG_VTNR; } x() { exec xinit -- :0 -nolisten tcp vt$XDG_VTNR; }
else
fixkb() {
setxkbmap -layout us,ru -variant altgr-intl,typewriter -option ctrl:nocaps,grp:win_space_toggle,grp_led:caps,compose:menu
xkbcomp $DISPLAY - | egrep -v "group . = AltGr;" | xkbcomp - $DISPLAY 2>/dev/null
}
fi fi
# }}} # }}}

3
vimrc
View file

@ -91,8 +91,7 @@ if v:version >= 700
Plug 'vdrandom/forked-solarized.vim' Plug 'vdrandom/forked-solarized.vim'
" syntax highlight plugins " syntax highlight plugins
Plug 'puppetlabs/puppet-syntax-vim' Plug 'neilhwatson/vim_cf3'
Plug 'nagios-syntax'
call plug#end() call plug#end()
" easymotion options " easymotion options