-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[support] filetype off #176
Comments
There was a bug in Vim's file detection that used to cause this weird behaviour, it has been fixed in Vim 7.3.430. I your version is newer, please disregard this comment. |
@jdevera How does one check their vesion of vim (I know of And if > 7.3.430 is an edge build how do I attain it? Cheers |
@jasonkuhrt (And for future readers) The final number is the "patch version" visible on the second line of the
So my version is 7.3.429 |
So if we have vim version > 7.3.430 can we remove |
The answer is no, as I just found out from my little experiment. However, what seemed to work was to do filetype off
filetype plugin indent on After the bundles block. File type detection must be enabled after the Bundles block because the runtime path is updated by every Bundle command and that could potentially bring new file types or more plugins for specific file types. It also appears that turning it on, when it's on, does nothing, so it must be turned off before. If you are reluctant to turn it off because it affects some file type detection, please try a newer vim version, with the 430th patch (quite unluckily, Ubuntu picked up only up to the patch right before that one.) |
@jdevera Thanks for the reply. I will try to update my vim to > 7.3.430 |
thanks guys, the topic is helpful |
That's the answer I needed :) |
@jdevera @gmarik Thanks! |
@ackalker filetype off
filetype on after loading your last Bundle. I think the comment should stay in the README file a little longer as many people still might have a version <7.3.430 (the relatively new OSX Maverics ships with vim 7.3 and no patches as far as I can tell) |
Thanks for your quick reply :-) |
It is not bug. It is Vim's feature. |
Ah I see. Thanks for pointing this out. |
I think this issue should be closed. |
This probably should have been closed a while ago. Maybe we'll revisit if NeoVim makes nice changes and becomes stable. |
May I ask what's the reason for this "filetype off" before calling vundle?
I have a problem that when it is called, then even though there is "filetype plugin indent on" at the end of file, it still won't load my system syntax files (e.g. gitcommit.vim).
But when I remove this "filetype off" before vundle then vim-coffee-script is not recognizing files properly.
I use workaround with autocmd for *.coffee, but it's all a bit mysterious to me why are these things happening. Any help would be very appreciated.
The text was updated successfully, but these errors were encountered: