From: Patrick McCarty Date: Tue, 27 Jul 2010 00:52:33 +0000 (-0700) Subject: Docs: Usage: Simplify Vim usage instructions. X-Git-Tag: release/2.13.29-1~24 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=5c6e54cb116ec894b6b2ff7b1fca6ed56628f53b;p=lilypond.git Docs: Usage: Simplify Vim usage instructions. --- diff --git a/Documentation/usage/external.itely b/Documentation/usage/external.itely index ff80c2d019..082964505c 100644 --- a/Documentation/usage/external.itely +++ b/Documentation/usage/external.itely @@ -160,39 +160,21 @@ your @var{load-path} by appending the following line (as modified) to your @node Vim mode @unnumberedsubsec Vim mode -For @uref{http://@/www@/.vim@/.org,VIM}, a @file{vimrc} is supplied, -along with syntax coloring tools. A Vim mode for entering music and -running LilyPond is contained in the source archive in @code{$VIM} -directory. - -To enable the Vim mode, locate the @file{filetype.vim} file and find -the first section which looks like - -@example -au filegroup detect -(many lines here) -augroup END -@end example - -then insert the following lines in the section, which is generally in -alphabetic order - -@example -: LilyPond - au! BufNewFile,BufRead *.ly,*.ily setf lilypond -@end example - -The next step is to append the following line to your @file{vimrc} +For @uref{http://@/www@/.vim@/.org,Vim}, a filetype plugin, indent +mode, and syntax-highlighting mode are available to use with +LilyPond. To enable all of these features, create (or modify) +your @file{$HOME/.vimrc} to contain these three lines, in order: @example -set runtimepath+=/usr/local/share/lilypond/$@{LILYPOND_VERSION@}/vim/ +filetype off +set runtimepath+=/usr/local/share/lilypond/current/vim/ +filetype on @end example @noindent -where $@{LILYPOND_VERSION@} is your LilyPond version. If your LilyPond -is installed in a different location, the path should be modified to suit. -To locate the @file{filetype.vim} and @file{.vimrc} files being used in -your install of Vim, use the @code{":version"} in a Vim session. +If LilyPond is not installed in the @file{/usr/local/} directory, +change the path appropriately. This topic is discussed in +@rlearning{Other sources of information}. @node Other editors