au BufEnter * if &ft == "perl" | call PerlMode_map() | endif
au BufLeave * if &ft == "perl" | call PerlMode_unmap() | endif
-" ... For PHP files:
-
-au BufEnter * if &ft == "php" | call PHPMode_map() | endif
-au BufLeave * if &ft == "php" | call PHPMode_unmap() | endif
-
" ... For makefiles:
au BufEnter * if &ft == "make" | call MakeMode_map() | endif
set foldmethod=manual
endfun
-fun! PHPMode_map()
- set nocindent
- set autoindent
-endfun
-
-fun! PHPMode_unmap()
- set noautoindent
- set cindent
-endfun
-
" ... For makefiles:
fun! MakeMode_map()