aboutsummaryrefslogtreecommitdiffstats
path: root/ftplugin/go.vim
diff options
context:
space:
mode:
authorTeddy Wing2019-05-17 00:15:15 +0200
committerTeddy Wing2019-05-17 00:15:15 +0200
commit374c5af58460f437cfaef093ed9f7347b210a5da (patch)
tree31cc99311be488ffd5bd71474af2f1d37f75b4c2 /ftplugin/go.vim
parent6bc32d71c17defab3610c2a112839cbf72fbbc61 (diff)
downloaddotvim-374c5af58460f437cfaef093ed9f7347b210a5da.tar.bz2
ftplugin/go.vim: Add mapping to `:GoTestCompile`
Make it faster to compile tests without running them.
Diffstat (limited to 'ftplugin/go.vim')
-rw-r--r--ftplugin/go.vim1
1 files changed, 1 insertions, 0 deletions
diff --git a/ftplugin/go.vim b/ftplugin/go.vim
index bef148e..fef741b 100644
--- a/ftplugin/go.vim
+++ b/ftplugin/go.vim
@@ -28,5 +28,6 @@ setlocal commentstring=//\ %s
nmap <buffer> Zr :GoRun .<CR>
nmap <buffer> Zb <Plug>(go-build)
+nmap <buffer> Zc <Plug>(go-test-compile)
nmap <buffer> <leader>z <Plug>(go-test)
nmap <buffer> <leader>Z <Plug>(go-test-func)