go support

This commit is contained in:
Loic Nageleisen 2014-10-14 15:19:51 +02:00
parent d284a3b989
commit b4f159c6bd
2 changed files with 3 additions and 2 deletions

3
vimrc
View file

@ -111,7 +111,7 @@ set list
"OS clipboard integration
set clipboard^=unnamed
"filetype specific settings
"filetype/language specific settings
autocmd FileType make set noexpandtab "makefiles need tabs
autocmd FileType ruby set softtabstop=2 shiftwidth=2
autocmd FileType eruby set softtabstop=2 shiftwidth=2
@ -120,6 +120,7 @@ au BufRead,BufNewFile Guardfile setfiletype ruby
au BufRead,BufNewFile *.skim setfiletype slim
au BufRead,BufNewFile *.opal setfiletype ruby
let g:syntastic_ruby_checkers = ['mri', 'rubocop']
let g:go_fmt_command = "goimports"
if expand('%:t') =~? 'rfc\d\+' || expand('%:t') =~? 'draft-.*-\d\{2,}'
setfiletype rfc