diff options
-rw-r--r-- | ftplugin/go.vim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ftplugin/go.vim b/ftplugin/go.vim index 7ce72a7..1fdc154 100644 --- a/ftplugin/go.vim +++ b/ftplugin/go.vim @@ -25,6 +25,10 @@ nnoremap <buffer> cdf :!go fmt %<cr> setlocal commentstring=//\ %s +" Add a trailing comma when expanding elements to multiple lines +let b:argwrap_tail_comma = 1 + + nmap <buffer> Zr :GoRun .<CR> nmap <buffer> Zb <Plug>(go-build) nmap <buffer> Zc <Plug>(go-test-compile) |