public
Created

  • Download Gist
.vimrc
VimL
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
filetype plugin indent on
set expandtab
set smartindent
set relativenumber
set textwidth=79
set colorcolumn=81
set nofoldenable
set hlsearch
set incsearch
 
" nnoremap <esc> :noh<return><esc>
"nnoremap <CR> :noh<CR><CR>
 
autocmd BufWritePre * :%s/\s\+$//e
 
" CSS
autocmd FileType css set shiftwidth=2 tabstop=2 softtabstop=2
 
" HTML
autocmd FileType html set shiftwidth=2 tabstop=2 softtabstop=2
 
" Javascript
autocmd FileType javascript set shiftwidth=2 tabstop=2 softtabstop=2
 
" VIM
autocmd FileType vim set shiftwidth=2 tabstop=2 softtabstop=2
 
" Python stuff..
au FileType python set tabstop=4
au FileType python set shiftwidth=4
au FileType python setl softtabstop=4
"autocmd FileType python compiler pylint
highlight BadWhitespace ctermbg=red guibg=red
au BufRead,BufNewFile *.py,*.pyw match BadWhitespace /^\t\+/
au BufRead,BufNewFile *.py,*.pyw,*.c,*.h,*.js match BadWhitespace /\s\+$/
"highlight SpellBad term=reverse ctermbg=0
 
" Node stuff
au BufNewFile,BufRead *.ejs set filetype=html
au BufRead,BufNewFile *.coffee set filetype=coffee
autocmd FileType coffee compiler espresso
 
" Actionscript
au BufNewFile,BufRead *.as set filetype=actionscript

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.