Skip to content

Instantly share code, notes, and snippets.

@otterley
Created December 1, 2010 15:44
Show Gist options
  • Save otterley/723655 to your computer and use it in GitHub Desktop.
Save otterley/723655 to your computer and use it in GitHub Desktop.
" Only do this part when compiled with support for autocommands.
if has("autocmd")
" Enable file type detection.
" Use the default filetype settings, so that mail gets 'tw' set to 72,
" 'cindent' is on in C files, etc.
" Also load indent files, to automatically do language-dependent indenting.
filetype plugin indent on
" Put these in an autocmd group, so that we can delete them easily.
augroup vimrcEx
au!
autocmd FileType perl setlocal ts=4 sw=4 et ai
augroup END
else
set autoindent " always set autoindenting on
endif " has("autocmd")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment