From e5bbfaa082a61fea4b6b18080e68b7c2173a32b1 Mon Sep 17 00:00:00 2001 From: Tobias Reisinger Date: Thu, 13 Feb 2020 20:41:20 +0100 Subject: [PATCH] add: lilypond auto compile for vim --- .config/vim/vimrc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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'