From 413109380075f9bb82e227a3b6a72591ade5c07e Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Mon, 23 Nov 2015 17:34:55 -0500 Subject: ftplugin/go.vim: Add mapping for `go fmt` Provide a quick way to format the current file. --- ftplugin/go.vim | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ftplugin') diff --git a/ftplugin/go.vim b/ftplugin/go.vim index a433d88..fa655bd 100644 --- a/ftplugin/go.vim +++ b/ftplugin/go.vim @@ -12,6 +12,9 @@ nnoremap cf :make % " Compile & run file nnoremap cr :!go run % +" Format +nnoremap cdf :!go fmt % + " Comment string setlocal commentstring=//\ %s -- cgit v1.2.3