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 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