forked from VeggieMeat/spf13-vim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc.fork
22 lines (19 loc) · 962 Bytes
/
.vimrc.fork
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
" Regenerate tag file for project. You must run this from the root of the project.
" This allows you to navigate the tags throughout your project.
nmap <silent> <leader>tg :!ctags -f ./tags --langmap="php:+.inc.module" -h ".php.inc" -R --totals=yes --tag-relative=yes --PHP-kinds=+cf-v . <CR>
" Set Drupal filetypes
if has("autocmd")
augroup module
autocmd BufRead,BufNewFile *.module set filetype=php
autocmd BufRead,BufNewFile *.install set filetype=php
autocmd BufRead,BufNewFile *.test set filetype=php
autocmd BufRead,BufNewFile *.inc set filetype=php
augroup END
endif
" Use Drupal coding standards for PHP
" https://drupal.org/node/1419988
let g:syntastic_mode_map = { 'mode': 'active', 'active_filetypes': ['php', 'css', 'html', 'xhtml', 'javascript'], 'passive_filetypes': [] }
let g:syntastic_php_checkers=['php', 'phpcs', 'phpmd']
let g:syntastic_php_phpcs_args = "--report=csv --standard=Drupal"
set tabstop=2
set shiftwidth=2