From 26c2a56d99f9435d6a32e42c9508cafc37ab7d72 Mon Sep 17 00:00:00 2001 From: yuyk <77815791+yu-yk@users.noreply.github.com> Date: Fri, 21 Jun 2024 13:36:57 +0900 Subject: vim-patch:6ccf6da: runtime(gomod): add gomod filetype plugin (#29433) closes: vim/vim#15060 https://github.com/vim/vim/commit/6ccf6da7a2a7a0b9d1e23a905b091d762e911609 --- runtime/ftplugin/gomod.vim | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 runtime/ftplugin/gomod.vim (limited to 'runtime/ftplugin/gomod.vim') diff --git a/runtime/ftplugin/gomod.vim b/runtime/ftplugin/gomod.vim new file mode 100644 index 0000000000..0d5d9ba9c2 --- /dev/null +++ b/runtime/ftplugin/gomod.vim @@ -0,0 +1,14 @@ +" Vim filetype plugin file +" Language: go module file +" Maintainer: YU YUK KUEN +" Last Change: 2024-06-21 + +if exists('b:did_ftplugin') + finish +endif +let b:did_ftplugin = 1 + +setlocal formatoptions-=t formatoptions-=c +setlocal commentstring=//\ %s + +let b:undo_ftplugin = 'setl fo< cms<' -- cgit From 498d9beed9117ce7b70add99ee6f1107ef9e7662 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Tue, 16 Jul 2024 22:28:52 +0200 Subject: vim-patch:babea52: runtime(gomod): add recommended indent options to ftplugin closes: vim/vim#15264 https://github.com/vim/vim/commit/babea52f4d2d7cf466c5b383a067078392b153dc Co-authored-by: markmacode --- runtime/ftplugin/gomod.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'runtime/ftplugin/gomod.vim') 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<' -- cgit