aboutsummaryrefslogtreecommitdiffstats
path: root/vim/vimrc
diff options
context:
space:
mode:
authorMatthew Lemon <matt@matthewlemon.com>2022-10-07 08:51:10 +0100
committerMatthew Lemon <matt@matthewlemon.com>2022-10-07 08:51:10 +0100
commit155d2c6c9935126efa499c16245f38f43c2ddd06 (patch)
tree1541ec85bc859477c7130ce7c86d5e6d4b90e9d9 /vim/vimrc
parent36698dbd11ab5d59ca1c377a3304b44e61f9b239 (diff)
added some vim-go stuff
Diffstat (limited to '')
-rw-r--r--vim/vimrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 0261200..8ba54bc 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -349,6 +349,9 @@ let g:go_snippet_engine = "ultisnips"
au Filetype go nmap <leader>ga <Plug>(go-alternate-edit)
au Filetype go nmap <leader>gah <Plug>(go-alternate-split)
au Filetype go nmap <leader>gav <Plug>(go-alternate-vertical)
+au Filetype go nmap <leader>gaf <Plug>(go-fmt)
+au Filetype go nmap <leader>gal <Plug>(go-lint)
+au Filetype go nmap <leader>gbx <Plug>(go-deps)
au FileType go nmap <F8> :GoTestFunc -short<cr>
au FileType go nmap <F10> :GoTest -short<cr>
au FileType go nmap <F9> :DlvToggleBreakpoint<CR>