Created
June 29, 2014 05:53
-
-
Save yograf/04300b2e39e74ad6da5d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Monaco font | |
set guifont=Monaco:h13:cANSI | |
let g:DisableAutoPHPFolding = 1 " disable PIV's folding | |
set nofoldenable " disable code folding | |
" Change to Drupal tabs | |
set tabstop=2 | |
set shiftwidth=2 | |
set softtabstop=2 | |
set expandtab | |
" Omni complete for PHP | |
autocmd FileType php set omnifunc=phpcomplete#CompletePHP | |
"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 wrap! | |
"set timeoutlen=0 " Time to wait after ESC (default causes an annoying delay) | |
" 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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment