From: Heikki Junes Date: Mon, 22 Mar 2004 23:03:47 +0000 (+0000) Subject: * Documentation/topdocs/INSTALL.texi: update vim-mode installing orders. X-Git-Tag: release/2.1.34~8 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=d95c8b7265bd25f9ffea3becbb80295984d245d1;p=lilypond.git * Documentation/topdocs/INSTALL.texi: update vim-mode installing orders. --- diff --git a/ChangeLog b/ChangeLog index 77833b1211..dda3390d4b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -23,6 +23,8 @@ * vim/GNUmakefile: use --words and --vim targets in lilypond-words.py + * Documentation/topdocs/INSTALL.texi: update vim-mode installing orders. + 2004-03-22 Heikki Junes * config.make.in: add vimdir. diff --git a/Documentation/topdocs/INSTALL.texi b/Documentation/topdocs/INSTALL.texi index 68a46788e7..e778194f8c 100644 --- a/Documentation/topdocs/INSTALL.texi +++ b/Documentation/topdocs/INSTALL.texi @@ -238,10 +238,13 @@ to your @var{load-path}. Append the following line (modified) to your @section Vim mode -@c lilypond.words.el for vim auto-completion? -A Vim mode for entering music and running LilyPond is contained in -the source archive. The LilyPond file type is detected if your file -@file{~/.vim/filetype.vim} has the following content: +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. + +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: @example if exists("did_load_filetypes") finish @@ -250,13 +253,12 @@ the source archive. The LilyPond file type is detected if your file 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}: +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}: @example - set runtimepath+=/usr/share/lilypond/vim/ + set runtimepath+=/usr/share/vim/ @end example @section Problems