* vim/GNUmakefile: add local-uninstall target.
+ * Documentation/topdocs/INSTALL.texi: give even more detailed orders.
+
+ * vim/vimrc: add a one-liner file.
+
+ * vim/GNUmakefile: try to remove empty dirs during uninstalling, put
+ vimrc in EXTRA_DIST_FILES.
+
2004-03-22 Heikki Junes <hjunes@cc.hut.fi>
* config.make.in: add vimdir.
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
local-uninstall:
rm $(vimdir)/compiler/lilypond.vim
+ rmdir -p $(vimdir)/compiler
+
rm $(vimdir)/ftdetect/lilypond.vim
+ rmdir -p $(vimdir)/ftdetect
+
rm $(vimdir)/ftplugin/lilypond.vim
+ rmdir -p $(vimdir)/ftplugin
+
rm $(vimdir)/indent/lilypond.vim
+ rmdir -p $(vimdir)/indent
+
rm $(vimdir)/syntax/lilypond.vim
+ rmdir -p $(vimdir)/syntax
-EXTRA_DIST_FILES=filetype.vim
+EXTRA_DIST_FILES=filetype.vim vimrc
LILYPOND_WORDS = $(outdir)/lilypond-words $(outdir)/lilypond-words.vim
LILYPOND_WORDS_DEPENDS =\