ftdetect scripts not loaded from directories added to runtimepath
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
vim (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: vim-common
Introduced in version 2:7.2.330-1ubuntu3 in 10.04 Lucid Lynx.
The file /etc/vim/vimrc from the package vim-common has un-commented the line "syntax on", turning on vim's syntax highlighting. This causes filetype detection to be enabled, which loads all ftdetect scripts from the runtimepath. This change is harmful to users of the pathogen.vim script, which edits the runtimepath. All the ftdetect scripts that would have been found by doing "syntax on" or "filetype on" after using pathogen are not found by the call to "syntax on" that happends before using pathogen. This causes filetypes introduced in the bundles installed using pathogen to not get detected.
Just for crossreference, "syntax on" was set in Bug #63172.