-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
45 lines (37 loc) · 1.8 KB
/
README
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
39
40
41
42
43
44
Drupal-vim is a simple drupal-friendly vim configuration example.
This is not a maintained distrubution but only an example of
how powerful can vim be with a fine tuned configuration.
REQUIREMENTS
you'll need
- ctags to generate tags for your project
- xdebug to use the debugger
It provides :
- drupal indentation style
- hooks autocompletion
- php statements autocompletion
- tags to jump to a function declaration like in Eclipse
- a php debugger
It contains two simple bash scripts to :
- generate tags for a project with Ctags (that will be stored to ~/.vim/tags directory)
- generate a dictionary for a project (that will be stored in dictionnaries directory).
You can check also "vimrc" project on drupal.org that now provides a vim plugin for Drupal.
INSTALLATION :
- download "drupal-vim" to your home folder
- ln -s .vim drupal-vim
- ln -s .vimrc drupal-vim/vimrc
PLUG-INS :
vim-pathogen : clean installation / removal of plug-ins
nerdtree : efficient and simple file explorer in a sidebar windows as in IDEs
vcscommand : git, svn or other cvs support
snipMate : a nice snippet generator : just type "hook_menu", press tab and it will generate a hook_menu for you :-)
nerdcommenter : easy comment / uncomment
taglist : list functions of a files in a sidebar window
debugger : a debugger client for xdebug
CSapprox : allow most of gvim colorsheme work on vim too.
Sources and inspiration :
- D6 snippets from https://github.com/theunraveler/Drupal-Snippets-for-Vim
- D7 snippets from https://github.com/blup/snippets
- vim as a php editor : http://zmievski.org/2007/02/vim-for-php-programmers-slides-and-resources.
- a simple and efficient vimrc : http://groups.drupal.org/node/4088
- snipMate snippets for Drupal 7 : https://github.com/blup/snippets
- nice vimrc : https://github.com/akitaonrails/vimfiles/blob/master/vimrc