Vimrc per sviluppatori Drupal
Inserito da Federico Pistono il Gio, 01/03/2008 - 15:46
Come usare il proprio editor preferito con il miglior framework? Salvare il file come ~/.vimrc-drupal e mettere bel alias nel ~/.bashrc per usare questa configurazione unicamente con Drupal.
File ~/.bashrc || ~/.bash_profile
alias vid="vim -u ~/.vimrc-drupal"
File ~/.vimrc-drupal
syntax on
set expandtab
set tabstop=2
set shiftwidth=2
set autoindent
set smartindent
if has("autocmd")
" Drupal *.module files.
augroup module
autocmd BufRead *.inc set filetype=php
augroup END
augroup module
autocmd BufRead *.module set filetype=php
augroup END
augroup module
autocmd BufRead *.info set filetype=php
augroup END
endif
" Highlight chars that go over the 80-column limit
:highlight OverLength ctermbg=red ctermfg=white guibg=red guifg=white
:match OverLength '\%81v.*'
" Highlight redundant whitespaces and tabs.
highlight RedundantSpaces ctermbg=red guibg=red
match RedundantSpaces /\s\+$\| \+\ze\t\|\t/
let php_sql_query = 1
let php_baselib = 1
let php_htmlInStrings = 1
let php_folding = 1
| Allegato | Dimensione |
|---|---|
| vimrc-drupal | 741 byte |







Commenti
Ci fosse una volta........
Ci fosse una volta che capisco questi tuoi interessanti post... :oP
E dire che probabilmente potrebbero anche essermi utili! :oD
Invia nuovo commento