A Vim mode for entering music and running LilyPond is contained in the
source archive. For version 6.2 and newer, Vim-mode works directly after
-installing LilyPond.
+installing LilyPond. Otherwise, complete the following two steps.
For earlier versions (and if @code{$VIM} environment variable does not
-fall-back to @file{/usr/share/vim}), the LilyPond file type is detected
-if your file @file{~/.vim/filetype.vim} has the following content:
+fall-back to @file{/usr/local/share/vim}, see @code{:version} in vim),
+the LilyPond file type is detected if your file @file{~/.vim/filetype.vim} @c
+has the following content:
@example
if exists("did_load_filetypes")
finish
au! BufNewFile,BufRead *.ly setf lilypond
augroup END
@end example
-If Vim has been installed to @file{/usr/local/...} instead of
-@file{/usr/...}, then @file{/usr/share/vim} may not be specified in
-your @code{$VIMRUNTIME} environment variable and you have to include this
-path explicitly by appending the following line to your @file{~/.vimrc}:
+If Vim has been (pre-)installed to @file{/usr/...} (or any other place)
+instead of @file{/usr/local/...}, then @file{/usr/local/share/vim} may not
+be specified in your @code{$VIMRUNTIME} environment variable and you have to
+include this path explicitly by appending the following line to your
+@file{~/.vimrc}:
@example
- set runtimepath+=/usr/share/vim/
+ set runtimepath+=/usr/local/share/vim/
@end example
@section Problems