Add LilyPond to vimrc and autocmds for .ly files
This commit is contained in:
parent
acdf635b48
commit
cc2409ebab
1 changed files with 6 additions and 0 deletions
|
@ -84,6 +84,8 @@ Plug 'Xuyuanp/nerdtree-git-plugin'
|
||||||
Plug 'Yggdroot/indentLine'
|
Plug 'Yggdroot/indentLine'
|
||||||
" VimTeX
|
" VimTeX
|
||||||
Plug 'lervag/vimtex'
|
Plug 'lervag/vimtex'
|
||||||
|
" LilyPond
|
||||||
|
Plug 'sersorrel/vim-lilypond'
|
||||||
|
|
||||||
call plug#end()
|
call plug#end()
|
||||||
" }}}
|
" }}}
|
||||||
|
@ -193,6 +195,10 @@ augroup configgroup
|
||||||
autocmd BufWritePre * :StripWhitespace
|
autocmd BufWritePre * :StripWhitespace
|
||||||
" Run Flake8 on write in python files
|
" Run Flake8 on write in python files
|
||||||
autocmd BufWritePost *.py call flake8#Flake8()
|
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 &
|
||||||
|
" Run lilypond after save on .ly files
|
||||||
|
autocmd BufWritePost *.ly !lilypond %
|
||||||
" Run make clean when leaving a LaTeX file if Makefile exists in directory
|
" Run make clean when leaving a LaTeX file if Makefile exists in directory
|
||||||
"autocmd VimLeave *.tex ![ -f ./Makefile ] && make clean
|
"autocmd VimLeave *.tex ![ -f ./Makefile ] && make clean
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue