From: Heikki Junes Date: Mon, 15 Mar 2004 22:19:11 +0000 (+0000) Subject: * Documentation/topdocs/INSTALL.texi: finish install orders for vim. X-Git-Tag: release/2.1.32~32 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=983db4513673604a474fbcba4a20e70ee15fd410;p=lilypond.git * Documentation/topdocs/INSTALL.texi: finish install orders for vim. --- diff --git a/ChangeLog b/ChangeLog index d8a80a6382..23618e4e3d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2004-03-16 Heikki Junes + + * Documentation/topdocs/INSTALL.texi: finish install orders for vim. + 2004-03-15 Jan Nieuwenhuizen * lily/paper-book.cc (stencil2line): Bugfix: put stencil in line. diff --git a/Documentation/topdocs/INSTALL.texi b/Documentation/topdocs/INSTALL.texi index 1ad727d8de..68a46788e7 100644 --- a/Documentation/topdocs/INSTALL.texi +++ b/Documentation/topdocs/INSTALL.texi @@ -240,12 +240,24 @@ to your @var{load-path}. Append the following line (modified) to your @c lilypond.words.el for vim auto-completion? A Vim mode for entering music and running LilyPond is contained in -the source archive. Copy recursively the file structure in @file{vim/} as -your @file{~/.vim/} to get shortcuts. Install (generated) files -@file{lilypond.words.el} and @file{lilypond.words.vim} to -@file{~/.vim/syntax/} in order to get auto-completion and syntax -highlighting. - +the source archive. The LilyPond file type is detected if your file +@file{~/.vim/filetype.vim} has the following content: +@example + if exists("did_load_filetypes") + finish + endif + augroup filetypedetect + au! BufNewFile,BufRead *.ly setf lilypond + augroup END +@end example +In addition, LilyPond's vim-mode files which are installed to +@file{/usr/share/lilypond/vim/} have to be placed in a path specified +in your @code{$VIMRUNTIME} environment variable. You can add this path +to @code{$VIMRUNTIME} by appending the following line to your +@file{~/.vimrc}: +@example + set runtimepath+=/usr/share/lilypond/vim/ +@end example @section Problems