From 780ff50f8c087fb0bebd1d640a1ff6a956c89e55 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 13 Feb 2016 22:06:44 +0100 Subject: ftplugin/go.vim: Don't preserve indentation on empty lines Go style (and `go fmt`) doesn't put indentation on empty lines, so for the sake of good Go, don't add indentation in this case. --- ftplugin/go.vim | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ftplugin') diff --git a/ftplugin/go.vim b/ftplugin/go.vim index fa655bd..4ea991b 100644 --- a/ftplugin/go.vim +++ b/ftplugin/go.vim @@ -16,5 +16,11 @@ nnoremap cr :!go run % nnoremap cdf :!go fmt % +" Don't preserve indentation on empty lines +inoremap +nnoremap o o +nnoremap O O + + " Comment string setlocal commentstring=//\ %s -- cgit v1.2.3