ja to resim funkci... treba pro php soubory...
fun! LoadPHP()
imap <? <?php?><C-O>F?<CR><CR><ESC>ki
imap /** /**<CR> * <CR>* <CR><BS>**/<ESC>kka
atd...
endfun
" pro TeX
fun! LoadTeX()
set wrap
map 1\ gg:%s/^[0-9]*\. \(.*\)$/\\item{\1}/g<CR>
map >} ^i{<ESC>$a}<ESC>^
map >s <<>}i\subsection<ESC>
... atd
endfun
a potom
au BufReadPre *.tex call LoadTEX()
au BufNewFile *.tex call LoadTEX()
au BufReadPre *.php call LoadPHP()
au BufNewFile *.php call LoadPHP()