Could we change the project description to better explain the above features, without having to wade through the Drupal manual..
Using Linux on the command line, I couldn't work out why these commands did nothing.
I suggest:
ftplugin/php_drupal.vim
This sets several vim options to appropriate values for editing PHP files, to make it easier to follow Drupal coding standards. It also defines the following mappings:
<LocalLeader>da
Lookup the API docs for a drupal function under cursor and open it in a web browser.
<LocalLeader>dda
Lookup the API docs for a drush function under cursor and open it in a web browser.
<LocalLeader>dv
Get the value of the drupal variable under cursor and open it in a web browser.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | vimrc-doc-1650652-2.patch | 1.47 KB | benjifisher |
| #1 | vimrc-doc-1650652.patch | 764 bytes | benjifisher |
Comments
Comment #1
benjifisherI changed the wording a bit, but added that \da and \dda open a web browser. The \dv command does not open in a web browser, but I added a comment that it requires drush.
I did not use <LocalLeader> in the definition list, but I added a line from the vim help file after the list. I keep thinking that I should have common sources for the HTML and vim-help documentation.
Please review the attached patch for the vim help file.
Comment #2
benjifisherI re-rolled the patch from #1 and committed it: f8207e7.