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.
Using the pre-installed /usr/bin/vim on Mac OS (10.6) the vim function has('macunix')
returns 0, so our script cannot decide what to use for the "open" command.
Comment | File | Size | Author |
---|---|---|---|
#1 | open-command-1835658.patch | 3.24 KB | benjifisher |
Comments
Comment #1
benjifisherCommitted: be9eb72.
The attached patch adds a test for
has('unix') && system('uname') =~ 'Darwin'
. It also fixes a related problem: ifOpenCommand()
returns''
, then the last menu command at the end offtplugin/drupal.vim
fails becauses:options
is defined conditionally. I moved the definition of this variable outside theif
statement.While I was looking at the end of that file, I decided to make an unrelated change and move the PHP-specific option settings near the top of the file.