I know this project is for the ultimate .vimrc (rockin' by the way, how much do you love vim?!), but I think it'd be useful to build a list of suggested plugins for use with vim and Drupal. Most vim plugins are not Drupal specific, but do help out with Drupal programming. The one plugin that would be great to collaborate on, though, is snipmate (http://www.vim.org/scripts/script.php?script_id=2540). It'd be great to build up a collection of Drupal related snippets. I've got a collection of Drupal6 snippets (https://github.com/duellj/snipmate.vim/tree/master/snippets/php) and am trying to figure out the best way to split out Drupal7 snippets.
Awesome plugins
Pathogen:
The ultimate plugin management system. If you aren't using this, your .vim/ folder is probably a mess.
https://github.com/tpope/vim-pathogen
Fugitive
"A Git wrapper so awesome, it should be illegal." Enough said.
https://github.com/tpope/vim-fugitive
Syntastic
Checks the syntax of files when saving. Saves you from needless parse errors.
https://github.com/scrooloose/syntastic
NERDTree
Popular file browser. If we do not include something like this, then people familiar with Coda will never take us seriously.
https://github.com/scrooloose/nerdtree
NERDCommenter
Comment/uncomment lines with a few key strokes or a menu. Scrooloose accepted my pull request, so now key strokes are shown in the menu. See comment above re: Coda users.
https://github.com/scrooloose/nerdcommenter
TagBar
Run (exuberant) ctags on the current file, then generate a jump list of functions etc. defined in the file. This is a rewrite for vim 7.x of the older TagList plugin.
https://github.com/majutsushi/tagbar
SnipMate
Emulate Textmate's snippet functionality. See #1139024: Add support for Drupal Snippets for Vim for discussion of Drupal snippets. The main repository is
https://github.com/msanders/snipmate.vim
but that has not been updated since April, 2010. It might be worth looking into more active forks.
Interesting, worth investigating
dbext.vim
Send queries to the databse form within vim.
http://www.vim.org/scripts/script.php?script_id=356
SnippetsBar
List the available snippets in a GUI menu.
https://github.com/dahu/SnippetsBar
Comments
Comment #1
wamilton commentedI've always been curious about the uses for dbext.vim for Drupal. It's pie-in-the-sky, but getting rails.vim level integration via Drush is a dream of mine.
Comment #2
kyle_mathews commentedAny discussion of Vim is inadequate I think without mentioning Janus which, in my mind, is the best Vim "distro" out there.
https://github.com/carlhuda/janus
Check it out, it seriously provides a huge boost in usability and comes prepackaged w/ most everything you need. I think anything done here should be provided as an extension to Janus.
Comment #3
msonnabaum commentedI don't disagree.
I think this project would probably serve better as a drupal vim plugin than an rc file. That way you could easily plug it into janus or any other .vim/plugins dir.
Comment #4
benjifisherSnippets are being discussed in #1139024: Add support for Drupal Snippets for Vim.
We have already moved away from a single rc file, as suggested in #3.
I agree that a list of recommended plugins is a good idea. Can we provide an easy way for people to download them? (See
:help GLVSfor one way to get scripts from vim.org. We can also find them on GitHub. In fact, I just opened an account on GitHub and started by forking my own vim scripts, which were already there.)More generally, we need some documentation pages for this project. Maybe as a child or sibling page of Configuring vim? We could include a list of recommended plugins and advertise all the features that this project provides. We could also advertise all the built-in features of vim. How many people know about insert-mode completion, diff mode, and quickfix mode, for example?
Is there a better place for the documentation? If we create a page, is there a way to give edit privileges to all the maintainers of this project?
There are a lot of plugins that I have never tried. We can start with the highest rated and most downloaded scripts for more recommendations. I think either the NERD tree or Project plugin would be useful.
Comment #5
benjifisherI am marking this issue as critical, since I want to see some progress before releasing vimrc 1.0. We may never close the issue, but I will bump it down once we have some good documentation.
I updated the issue summary, adding some plugins and reorganizing a bit.
See also #1139024: Add support for Drupal Snippets for Vim and #1145580: Add installer?.
Comment #6
benjifisherI have created a page in the "Develop for Drupal" handbook: http://drupal.org/node/1389472. I included all the plugins mentioned in the issue summary above except those under the heading "Interesting, worth investigating." I even included a screenshot of Syntastic in action.
We can always add to the list, but now that we have a place to put suggested plugins, I am marking this issue as fixed. Since this is documentation rather than code, I do not think we need to go through the "Needs review" stage.
Comment #7.0
(not verified) commentedAdded some plugins to the list in the issue summary.