From: markmacode Date: Tue, 16 Jul 2024 19:27:58 +0000 (+0200) Subject: runtime(gomod): add recommended indent options to ftplugin X-Git-Tag: v9.1.0593~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=babea52f4d2d7cf466c5b383a067078392b153dc;p=thirdparty%2Fvim.git runtime(gomod): add recommended indent options to ftplugin closes: #15264 Signed-off-by: markmacode Signed-off-by: yu-yk Signed-off-by: Christian Brabandt --- diff --git a/runtime/ftplugin/gomod.vim b/runtime/ftplugin/gomod.vim index 0d5d9ba9c2..554c948eb0 100644 --- a/runtime/ftplugin/gomod.vim +++ b/runtime/ftplugin/gomod.vim @@ -2,13 +2,15 @@ " Language: go module file " Maintainer: YU YUK KUEN " Last Change: 2024-06-21 +" 2024 Jul 16 by Vim Project (noexpandtab) if exists('b:did_ftplugin') finish endif let b:did_ftplugin = 1 +setlocal noexpandtab setlocal formatoptions-=t formatoptions-=c setlocal commentstring=//\ %s -let b:undo_ftplugin = 'setl fo< cms<' +let b:undo_ftplugin = 'setl et< fo< cms<'