Skip to content

jpstacey/Drupal-vimrc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is my Drupal .vimrc . Check it out to .drupal_vim , then add the 
following to your core ~/.vimrc :

  noremap <buffer> <F2>#d<CR> :source ~/.drupal_vim/.drupal.vimrc<CR>

Type F2, #d, enter - "<F2>#d<CR>" in Vim syntax - to bring in all the 
Drupal macros.

Current commands:

 <F2>#f<CR> - start a PHP file with a Doxygen comment
 <F2>#fn<CR> - start a function with a Doxygen comment
 <F2>#i<CR> - start a skeleton .info file

 Templates:

 <F2>block<CR> - hook_block
 <F2>fa<CR> - hook_form_alter
 <F2>help<CR> - hook_help
 <F2>init<CR> - hook_init
 <F2>install<CR> - hook_install
 <F2>menu<CR> - hook_menu
 <F2>napi<CR> - hook_nodeapi
 <F2>perm<CR> - hook_perm
 <F2>req<CR> - hook_requirements
 <F2>schema<CR> - hook_schema
 <F2>tra<CR> - hook_theme_registry_alter
 <F2>theme<CR> - hook_theme
 <F2>uninstall<CR> - hook_uninstall
 <F2>user<CR> - hook_user
 <F2>vapi<CR> - hook_views_api

 <f2>pp<CR> - hook_preprocess
 <f2>ppb<CR> - hook_preprocess_block
 <f2>ppn<CR> - hook_preprocess_node
 <f2>ppp<CR> - hook_preprocess_page

D6-compatible hooks only.

About

My Drupal .vimrc, with associated files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published