From cb63080b0b9d20c7719080e01d5a6b9f75619bc3 Mon Sep 17 00:00:00 2001 From: hjunes Date: Thu, 21 Nov 2002 22:40:17 +0000 Subject: [PATCH] instructions to vim syntax-highlighting. --- Documentation/topdocs/INSTALL.texi | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) 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 -- 2.39.2