Add make on write autocmd
This commit is contained in:
parent
14d22c69af
commit
ee6c7939a5
1 changed files with 2 additions and 0 deletions
|
@ -146,6 +146,8 @@ augroup configgroup
|
|||
autocmd BufWritePre * :StripWhitespace
|
||||
" Run Flake8 on write in python files
|
||||
autocmd BufWritePost *.py call flake8#Flake8()
|
||||
" Run make on write in LaTeX files if Makefile exists in directory
|
||||
autocmd BufWritePost *.tex ![ -f ./Makefile ] && make
|
||||
|
||||
" Toggle relative number and absolute number according to focus and insert
|
||||
autocmd BufEnter,FocusGained,InsertLeave * set relativenumber
|
||||
|
|
Loading…
Add table
Reference in a new issue