diff options
author | Teddy Wing | 2019-05-17 20:56:11 +0200 |
---|---|---|
committer | Teddy Wing | 2019-05-17 20:56:11 +0200 |
commit | d95ed0309d8c24dd62c65ed25ee5c260df28989a (patch) | |
tree | b0f2352ccad5d9ae77e97e6b54bd98844fd5ab21 | |
parent | 17f0e0818c53d5ba2aed76b4330378c89d626162 (diff) | |
download | dotvim-d95ed0309d8c24dd62c65ed25ee5c260df28989a.tar.bz2 |
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.
-rw-r--r-- | ftplugin/go.vim | 1 |
1 files changed, 1 insertions, 0 deletions
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 <buffer> Zr :GoRun .<CR> nmap <buffer> Zb <Plug>(go-build) nmap <buffer> Zc <Plug>(go-test-compile) +nmap <buffer> Zf <Plug>(go-imports) nmap <buffer> <leader>z <Plug>(go-test) nmap <buffer> <leader>Z <Plug>(go-test-func) |