Currently, the project does:set ft+='.php'
inside a FileType autocommand. This triggers the FileType event, which can lead to confusing results. It also defeats a user who tries to reset 'ft' to php (for example). See #1903214-2: You're munging my non-Drupal PHP files.

It should be possible to fix this by moving the drupal-detecting code from plugin/drupal.vim to filetype.vim.

Comments

benjifisher’s picture

Status: Active » Closed (duplicate)