From 59f3b8ea68d1d6ac01ddbea3f033ffa07e63bdfb Mon Sep 17 00:00:00 2001 From: Louis Date: Fri, 6 Sep 2019 18:22:58 +0200 Subject: [PATCH] Fix vim --- vim/vimrc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vim/vimrc b/vim/vimrc index 806da08..f775950 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -34,17 +34,17 @@ set modeline " Maintain undo history between sessions set undofile if ($XDG_DATA_HOME != '') - silent !mkdir $XDG_DATA_HOME/vim/undodir -p > /dev/null + silent !mkdir $XDG_DATA_HOME/vim/undodir -p > /dev/null 2>&1 set undodir=$XDG_DATA_HOME/vim/undodir if has("autocmd") - autocmd bufwritepost * silent ! chmod" 600 $XDG_DATA_HOME/vim/undodir/* > /dev/null && rm $XDG_DATA_HOME/vim/undodir/*\%.git\%COMMIT_EDITMSG > /dev/null + 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 else if ($HOME != '') - silent !mkdir $HOME/.local/share/vim/undodir -p > /dev/null + silent !mkdir $HOME/.local/share/vim/undodir -p > /dev/null 2>&1 set undodir=$HOME/.local/share/vim/undodir if has("autocmd") - autocmd bufwritepost * silent ! chmod 600 $HOME/.local/share/vim/undodir/* > /dev/null && rm $HOME/.local/share/vim/undodir/*\%.git\%COMMIT_EDITMSG > /dev/null + autocmd bufwritepost * silent ! chmod 600 $HOME/.local/share/vim/undodir/* > /dev/null 2>&1 && rm $HOME/.local/share/vim/undodir/*\%.git\%COMMIT_EDITMSG > /dev/null 2>&1 endif else echo "Error: environment variable $HOME not set"