runtime(gomod): add recommended indent options to ftplugin
Commit:
https://github.com/vim/vim/commit/babea52f4d2d7cf466c5b383a067078392b153dc
Author: markmacode <[email protected]>
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 <[email protected]>
Signed-off-by: yu-yk <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
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 <[email protected]>
" 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<'
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/E1sTxvN-0091VW-T9%40256bit.org.