Created
January 13, 2013 20:41
-
-
Save aji/4526134 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
autocmd! | |
set title | |
set wildmenu | |
syntax on | |
set noexpandtab | |
set softtabstop=8 | |
set shiftwidth=8 | |
function! SetIndent(x) | |
let &l:softtabstop=a:x | |
let &l:shiftwidth=a:x | |
setlocal expandtab | |
endfunction | |
autocmd FileType python call SetIndent(4) | |
autocmd FileType html call SetIndent(2) | |
autocmd FileType ruby call SetIndent(2) | |
autocmd FileType php call SetIndent(2) | |
autocmd FileType scheme call SetIndent(2) | |
set equalprg=fmt\ -ct |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment