diff --git a/dotfiles/vim/vimrc b/dotfiles/vim/vimrc index baf6cdb..59081fa 100644 --- a/dotfiles/vim/vimrc +++ b/dotfiles/vim/vimrc @@ -196,11 +196,9 @@ augroup configgroup " Run Flake8 on write in python files autocmd BufWritePost *.py call flake8#Flake8() " Open pdf after entering .ly file for side-by-side - autocmd VimEnter *.ly ![ -f ./%:r.pdf ] && zathura %:r.pdf & + autocmd VimEnter *.ly silent ![ -f ./%:r.pdf ] && zathura %:r.pdf & " Run lilypond after save on .ly files autocmd BufWritePost *.ly !lilypond % - " Run make clean when leaving a LaTeX file if Makefile exists in directory - "autocmd VimLeave *.tex ![ -f ./Makefile ] && make clean " Toggle relative number and absolute number according to focus and insert autocmd BufEnter,FocusGained,InsertLeave * set relativenumber