diff --git a/.config/vim/vimrc b/.config/vim/vimrc index 00fa688..1ce808f 100644 --- a/.config/vim/vimrc +++ b/.config/vim/vimrc @@ -19,11 +19,14 @@ set encoding=utf-8 set nowrap -" Save cursor position. I don't understand this part if has("autocmd") - au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal! g`\"" | endif + " Save cursor position. I don't understand this part + au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal! g`\"" | endif + + au FileType lilypond au BufWritePost * !lilypond % endif + " Plug plugins using VimPlug call plug#begin('~/.config/vim/plugged') Plug 'editorconfig/editorconfig-vim'