diff options
author | Teddy Wing | 2019-05-10 23:28:02 +0200 |
---|---|---|
committer | Teddy Wing | 2019-05-10 23:28:02 +0200 |
commit | 577b9e0f6f55b661edede1eb072c8576014afec9 (patch) | |
tree | cdc3b7fb48598324500f745062fb7e051eabbf6b /ftplugin/go.vim | |
parent | 8a24622c84c884df3ca665ab8674565de567a390 (diff) | |
download | dotvim-577b9e0f6f55b661edede1eb072c8576014afec9.tar.bz2 |
ftplugin/go.vim: Add a few mappings to Vim-Go
Mappings to build projects and run tests.
Diffstat (limited to 'ftplugin/go.vim')
-rw-r--r-- | ftplugin/go.vim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ftplugin/go.vim b/ftplugin/go.vim index 4ea991b..a49cab3 100644 --- a/ftplugin/go.vim +++ b/ftplugin/go.vim @@ -24,3 +24,9 @@ nnoremap <buffer> O O " Comment string setlocal commentstring=//\ %s + + +nmap <buffer> Zr <Plug>(go-run) +nmap <buffer> Zb <Plug>(go-build) +nmap <buffer> <leader>z <Plug>(go-test) +nmap <buffer> <leader>Z <Plug>(go-test-func) |