More comma-t mapping and 80-column crap

main
Dan Buch 11 years ago
parent 9b974d742a
commit 707ec42796

@ -13,12 +13,23 @@ autocmd BufNew,BufRead *.feature,*.rb,*.ru,*.xml,*.html,*.htm,Gemfile,Rakefile,P
\| set tabstop=2
\| set softtabstop=2
autocmd FileType ruby set shiftwidth=2
\| set tabstop=2
\| set softtabstop=2
\| map ,t :RuboCop<CR>:w<CR>
autocmd BufNew,BufRead *.ino,*.pde setf arduino
" Set up some sane java compilation bits
autocmd BufNew,BufRead *.java set efm=%A\ %#[javac]\ %f:%l:\ %m,%-Z\ %#[javac]\ %p^,%-C%.%#
\| set makeprg=ant\ -find\ build.xml
" remap ',t' in Go buffers to do :Fmt first
autocmd BufNew,BufRead *.go map ,t :Fmt<CR>:w<CR>
" never expand tabs (multiline-strings) and remap ',t' to do :Fmt first in Go
autocmd FileType go set noexpandtab
\| map ,t :Fmt<CR>:w<CR>
" add color column for a few file types
autocmd FileType go,python,ruby set colorcolumn=80
" highlighting sbt as scala, too
autocmd BufNew,BufRead *.sbt set syn=scala
@ -92,6 +103,7 @@ endfun
" call it right away for certain files
autocmd FileType python call LambastOver80Wide()
autocmd FileType moin call LambastOver80Wide()
" autocmd FileType go call LambastOver80Wide()
" autocmd FileType javascript call LambastOver80Wide()
" autocmd FileType actionscript call LambastOver80Wide()
autocmd FileType mail call LambastOver80Wide()

Loading…
Cancel
Save