aboutsummaryrefslogtreecommitdiffstats
path: root/ftplugin/go.vim
diff options
context:
space:
mode:
authorTeddy Wing2019-05-10 23:28:02 +0200
committerTeddy Wing2019-05-10 23:28:02 +0200
commit577b9e0f6f55b661edede1eb072c8576014afec9 (patch)
treecdc3b7fb48598324500f745062fb7e051eabbf6b /ftplugin/go.vim
parent8a24622c84c884df3ca665ab8674565de567a390 (diff)
downloaddotvim-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.vim6
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)