First thing I would check - On the broken machine, edit your vimrc and make sure set filetype on
is in there somewhere.
Other things to check on the broken machine:
- $VIMRUNTIME/filetype.vim exists
- What does
:filetype
display when your are editing a file? (Should say that detection plugin & indent are all ON.)
- Does
set syntax off
appear in your vimrc anywhere?
A few things from looking at your file:
Lines 70-72:
The file types are also used for syntax highlighting. If the :syntax on
command is used, the file type detection is installed too. There is no need to do :filetype on
after :syntax on
.
If you are going to use filetype plugin indent on
, then you don't need filetype on
right before it. This is how the various commands work:
command detection plugin indent ~
:filetype on on unchanged unchanged
:filetype off off unchanged unchanged
:filetype plugin on on on unchanged
:filetype plugin off unchanged off unchanged
:filetype indent on on unchanged on
:filetype indent off unchanged unchanged off
:filetype plugin indent on on on on
:filetype plugin indent off unchanged off off
Line 170: Turn off NERD shutup. Do you get any use filetype complaints?
Other thoughts:
Is it possible the file on the non-working machine has a modified filetypes.vim? Diff the files. Are they exactly the same? Are the permissions the same?
By the way, it doesnt matter which filetype I need. The same thing happens for any file. – None – 2009-11-09T22:43:18.060
I take it you've solved the problem by upgrading MacVim? – Joseph Holsten – 2009-11-10T15:38:37.383