13 lines
525 B
VimL
13 lines
525 B
VimL
" Convenient mappings for all Go things
|
|
au FileType go nmap <leader>r :GoRun!<CR>
|
|
au FileType go nmap <leader>e <Plug>(go-rename)
|
|
au FileType go nmap <leader>s <Plug>(go-implements)
|
|
au FileType go nmap <leader>t :GoTest!<CR>
|
|
au FileType go nmap <leader>c <Plug>(go-coverage)
|
|
au FileType go nmap <leader>v <Plug>(go-vet)
|
|
au FileType go nmap <leader>gd <Plug>(go-doc)
|
|
au FileType go nmap <leader>d :GoDef<CR>
|
|
au FileType go nmap <leader>D :GoDescribe<CR>
|
|
" Use `goimports` instead of `gofmt`
|
|
let g:go_fmt_command = "goimports"
|