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.)
set syntax off appear in your vimrc anywhere?
A few things from looking at your file:
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
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?
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?