From: Heikki Junes Date: Thu, 21 Nov 2002 22:40:17 +0000 (+0000) Subject: instructions to vim syntax-highlighting. X-Git-Tag: release/1.7.9~35 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=cac7b4af1390a7aa6398e6dca7d24339c3aa5d13;p=lilypond.git instructions to vim syntax-highlighting. --- diff --git a/Documentation/topdocs/INSTALL.texi b/Documentation/topdocs/INSTALL.texi index 2356ecff53..fd131e91a6 100644 --- a/Documentation/topdocs/INSTALL.texi +++ b/Documentation/topdocs/INSTALL.texi @@ -346,10 +346,21 @@ file. A Vim mode for entering music and running LilyPond is contained in the source archive. Append the content of @file{vimrc} to @file{~/.vimrc} -to get shortcuts. Install files @file{lilypond.vim} and @file{lilypond.words} -to @file{~/.vim/} to get syntax-highlighting and auto-completion, -correspondingly. - +to get shortcuts. Install file @file{lilypond.words} to @file{~/.vim/} to +get auto-completion. Syntax highlighting you get by installing +@file{lilypond.vim} to @file{~/.vim/syntax/} and appending the following +to @file{~/.vim/filetype.vim}: +@quotation +@example +" my filetype file +if exists("did_load_filetypes") + finish +endif +augroup filetypedetect + au! BufRead,BufNewFile *.ly setfiletype lilypond +augroup +@end example +@end quotation @section Compiling for distributions