From d95ed0309d8c24dd62c65ed25ee5c260df28989a Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Fri, 17 May 2019 20:56:11 +0200 Subject: ftplugin/go.vim: Add a mapping to run `goimports` Sometimes the run-on-save functionality doesn't work. This gives me a quick way to run the formatter when it doesn't happen automatically. --- ftplugin/go.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/ftplugin/go.vim b/ftplugin/go.vim index fef741b..29243ef 100644 --- a/ftplugin/go.vim +++ b/ftplugin/go.vim @@ -29,5 +29,6 @@ setlocal commentstring=//\ %s nmap Zr :GoRun . nmap Zb (go-build) nmap Zc (go-test-compile) +nmap Zf (go-imports) nmap z (go-test) nmap Z (go-test-func) -- cgit v1.2.3