Fix vimrc

master
Louis Royer 5 years ago
parent f1dd4e22e9
commit aef65d1bc9

@ -2,7 +2,7 @@
if has("autocmd") if has("autocmd")
autocmd! bufwritepost .vimrc source ~/.vimrc autocmd! bufwritepost .vimrc source ~/.vimrc
endif endif
if !empty(system("setxkbmap -print|grep bepo")) if ((!empty(system("setxkbmap -print|grep bepo"))) || ($USER == "root"))
source ~/.vimrc.bepo source ~/.vimrc.bepo
endif endif
@ -37,7 +37,7 @@ if ($XDG_DATA_HOME != '')
silent !mkdir $XDG_DATA_HOME/vim/undodir -p > /dev/null 2>&1 silent !mkdir $XDG_DATA_HOME/vim/undodir -p > /dev/null 2>&1
set undodir=$XDG_DATA_HOME/vim/undodir set undodir=$XDG_DATA_HOME/vim/undodir
if has("autocmd") if has("autocmd")
autocmd bufwritepost * silent ! chmod" 600 $XDG_DATA_HOME/vim/undodir/* > /dev/null 2>&1 && rm $XDG_DATA_HOME/vim/undodir/*\%.git\%COMMIT_EDITMSG > /dev/null 2>&1 autocmd bufwritepost * silent ! chmod 600 $XDG_DATA_HOME/vim/undodir/* > /dev/null 2>&1 && rm $XDG_DATA_HOME/vim/undodir/*\%.git\%COMMIT_EDITMSG > /dev/null 2>&1
endif endif
else else
if ($HOME != '') if ($HOME != '')

Loading…
Cancel
Save