-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
38 lines (30 loc) · 1.04 KB
/
README
File metadata and controls
38 lines (30 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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.