I have vim 7.3, with the setting that Ubuntu 11.04 installed by default. My .vimrc looks like this:
set nocompatible
set autoindent
set tabstop=4
set softtabstop=4
set shiftwidth=4
set expandtab
filetype plugin indent on
let g:omni_sql_no_default_maps = 1 " Stops Omni from grabbing left/right keys
" syntax, colorscheme and status line directives omitted.
How to selectively disable this indentation for different file types (e.g. php, phtml, rb)?
So far I have tried autocmd FileType php filetype plugin indent offseveral options, but I have not succeeded yet.
(Deleting a line filetype plugin ...leads to the desired behavior, but explicitly affects all file types, not just a few.)
source
share