Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
benjifisherThis is fixed in #1903214: You're munging my non-Drupal PHP files.