summaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorPatrick McCarty <pnorcks@gmail.com>2009-08-30 22:32:03 -0700
committerPatrick McCarty <pnorcks@gmail.com>2009-08-30 22:44:53 -0700
commit4a4d60e6a8d01d94137e04c5c4f5c5048a3785e1 (patch)
tree9b79a5dd25613a0058fe02ee806dca42fd392946 /vim
parent41e6061a47817c88aab6d8ba28b80599e18f8b3d (diff)
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.
Diffstat (limited to 'vim')
-rw-r--r--vim/lilypond-ftdetect.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/vim/lilypond-ftdetect.vim b/vim/lilypond-ftdetect.vim
index 9147fc81dd..756e65b80f 100644
--- a/vim/lilypond-ftdetect.vim
+++ b/vim/lilypond-ftdetect.vim
@@ -1,4 +1,4 @@
"
" Installed As: vim/ftdetect/lilypond.vim
"
-au! BufNewFile,BufRead *.ly,*.ily setf lilypond
+au! BufNewFile,BufRead *.ly,*.ily set ft=lilypond