Created
April 4, 2014 15:12
-
-
Save mmattax/9976722 to your computer and use it in GitHub Desktop.
.vimrc
This file contains 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
syntax enable | |
set number | |
set ruler | |
set autoindent | |
set smartindent | |
set tabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
set background=dark | |
set nohlsearch | |
au BufWritePost *.php !php -l % | |
let html_no_rendering = 1 | |
autocmd BufWritePre *.py :%s/\s\+$//e | |
au BufEnter,BufRead *.py setlocal smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class,with | |
filetype indent on | |
au BufReadPost *.coffee setlocal tabstop=2 shiftwidth=2 | |
au BufReadPost *.js setlocal tabstop=2 shiftwidth=2 | |
au BufReadPost *.html setlocal tabstop=2 shiftwidth=2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment