On Thu, Nov 12, 2009 at 10:21:32AM +1100, John Ky wrote: >Does anyone know why if the first character in my *.clj file is '#', then >when I open it in VIM, ClojureVIM fails to recognise it as a Clojure file?
Vim runs the type detectors that examine the file before the ones based on filename. The vimclojure name-based autodetector uses 'setfiletype' which only sets the filetype if it hasn't been detected already. The simplest fix is to change the 'setfiletype' in the ftdetect/clojure.vim file to 'filetype'. This tells it to force the filetype to clojure when it ends in '.clj' no matter what it was detected as. You can also make line 2 of the file be something like: ; vim: set filetype=clojure : and just override it on an individual basis. David -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en