summaryrefslogtreecommitdiff
path: root/.vim/ftplugin/go.vim
blob: 1fec764bf3190e8ed255e0ece888bb2a408f5c4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
nmap <leader>b  <Plug>(go-build)
nmap <leader>r  <Plug>(go-run)
nmap <leader>i  <Plug>(go-info)
nmap <leader>t  <Plug>(go-test-func)
nmap <leader>d  <Plug>(go-doc)

let g:go_fmt_command = "goimports"
let g:go_auto_type_info = 1
let g:syntastic_go_checkers = ['go', 'govet']

set autowrite

command! -bang A call go#alternate#Switch(<bang>0, 'edit')
command! -bang AV call go#alternate#Switch(<bang>0, 'vsplit')
command! -bang AS call go#alternate#Switch(<bang>0, 'split')