Commit: runtime(gomod): add recommended indent options to ftplugin

10 views
Skip to first unread message

Christian Brabandt

unread,
Jul 17, 2024, 2:14:07 AM7/17/24
to vim...@googlegroups.com
runtime(gomod): add recommended indent options to ftplugin

Commit: https://github.com/vim/vim/commit/babea52f4d2d7cf466c5b383a067078392b153dc
Author: markmacode <co...@mamo.aleeas.com>
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 <co...@mamo.aleeas.com>
Signed-off-by: yu-yk <yukku...@linktivity.co.jp>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/ftplugin/gomod.vim b/runtime/ftplugin/gomod.vim
index 0d5d9ba9c..554c948eb 100644
--- a/runtime/ftplugin/gomod.vim
+++ b/runtime/ftplugin/gomod.vim
@@ -2,13 +2,15 @@
" Language: go module file
" Maintainer: YU YUK KUEN <yukkue...@gmail.com>
" 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<'
Reply all
Reply to author
Forward
0 new messages