]> git.donarmstrong.com Git - lilypond.git/commit
Vim ftdetect: use `set ft' instead of `setf'.
authorPatrick McCarty <pnorcks@gmail.com>
Mon, 31 Aug 2009 05:32:03 +0000 (22:32 -0700)
committerPatrick McCarty <pnorcks@gmail.com>
Mon, 31 Aug 2009 05:44:53 +0000 (22:44 -0700)
commit4a4d60e6a8d01d94137e04c5c4f5c5048a3785e1
tree9b79a5dd25613a0058fe02ee806dca42fd392946
parent41e6061a47817c88aab6d8ba28b80599e18f8b3d
Vim ftdetect: use `set ft' instead of `setf'.

Since filetype.vim is no longer distributed, the `setf' command will
only set the filetype if Vim's default filetype.vim does not detect a
matching filetype first.

Unfortunately, when certain lines begin with #(, the "generic" filetype
is matched, so the LilyPond-specific highlighting is never loaded.

A workaround is to use `set ft'; this sets the filetype to `lilypond'
unconditionally for all files ending in .ly or .ily, which is what we
want.
vim/lilypond-ftdetect.vim