# HG changeset patch # User Christian Brabandt # Date 1721196841 -7200 # Node ID d572d128da45fefa3701da61c1158a80d7121e64 # Parent 99d97826842aec5b69c69c6c8e03b905f1c620cd runtime(gomod): add recommended indent options to ftplugin Commit: https://github.com/vim/vim/commit/babea52f4d2d7cf466c5b383a067078392b153dc Author: markmacode Date: Tue Jul 16 21:27:58 2024 +0200 runtime(gomod): add recommended indent options to ftplugin closes: https://github.com/vim/vim/issues/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 --- 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<'