Browse Source

add autocmd for go filetype

Kyle P Davis 10 years ago
parent
commit
1fd52bf076
1 changed files with 1 additions and 0 deletions
  1. 1 0
      .vimrc

+ 1 - 0
.vimrc

@@ -26,6 +26,7 @@ vmap <C-c> :w !pbcopy<CR><CR>
 " force syntax on a few file types
 autocmd BufNewFile,BufRead *.json set ft=javascript
 autocmd BufNewFile,BufRead *.md set ft=markdown
+autocmd BufNewFile,BufRead *.go set filetype=go
 
 " run js-beautify with the = key
 autocmd FileType javascript setlocal equalprg=js-beautify\ -f\ -\ -q\ -t\ -j\ -w\ 140\ --good-stuff