vimと関係無いもの
- https://github.com/jstemmer/gotags
- https://github.com/buaazp/Godef
- https://github.com/motemen/go-quickfix
vimのプラグイン
vimの設定(丸コピ
auFileTypego nmap <leader>r<Plug>(go-run)auFileTypego nmap <leader>b<Plug>(go-build)auFileTypego nmap <leader>t<Plug>(go-test)auFileTypego nmap <leader>c<Plug>(go-coverage)auFileTypego nmap <Leader>ds<Plug>(go-def-split)auFileTypego nmap <Leader>dv <Plug>(go-def-vertical)auFileTypego nmap <Leader>dt <Plug>(go-def-tab)auFileTypego nmap <Leader>gd<Plug>(go-doc)auFileTypego nmap <Leader>gv <Plug>(go-doc-vertical)auFileTypego nmap <Leader>gb <Plug>(go-doc-browser)auFileTypego nmap <Leader>s<Plug>(go-implements)auFileTypego nmap <Leader>i<Plug>(go-info)auFileTypego nmap <Leader>e<Plug>(go-rename)letg:tagbar_type_go = {
\ 'ctagstype' : 'go',
\ 'kinds' : [
\ 'p:package',
\ 'i:imports:1',
\ 'c:constants',
\ 'v:variables',
\ 't:types',
\ 'n:interfaces',
\ 'w:fields',
\ 'e:embedded',
\ 'm:methods',
\ 'r:constructor',
\ 'f:functions'
\ ],
\ 'sro' : '.',
\ 'kind2scope' : {
\ 't' : 'ctype',
\ 'n' : 'ntype'
\ },
\ 'scope2kind' : {
\ 'ctype' : 't',
\ 'ntype' : 'n'
\ },
\ 'ctagsbin' : 'gotags',
\ 'ctagsargs' : '-sort -silent'
\ }