runtime(gomod): add gomod filetype plugin Commit: https://github.com/vim/vim/commit/6ccf6da7a2a7a0b9d1e23a905b091d762e911609 Author: yu-yk <yukkuen...@linktivity.co.jp> Date: Thu Jun 20 22:08:19 2024 +0200
runtime(gomod): add gomod filetype plugin closes: https://github.com/vim/vim/issues/15060 Signed-off-by: yu-yk <yukkuen...@linktivity.co.jp> Signed-off-by: Christian Brabandt <c...@256bit.org> diff --git a/.github/MAINTAINERS b/.github/MAINTAINERS index 5ebe93a58..19574990f 100644 --- a/.github/MAINTAINERS +++ b/.github/MAINTAINERS @@ -152,6 +152,7 @@ runtime/ftplugin/gitsendemail.vim @tpope runtime/ftplugin/graphql.vim @ribru17 runtime/ftplugin/gyp.vim @ObserverOfTime runtime/ftplugin/go.vim @dbarnett +runtime/ftplugin/gomod.vim @yu-yk runtime/ftplugin/gprof.vim @dpelle runtime/ftplugin/haml.vim @tpope runtime/ftplugin/hare.vim @selenebun diff --git a/runtime/ftplugin/gomod.vim b/runtime/ftplugin/gomod.vim new file mode 100644 index 000000000..0d5d9ba9c --- /dev/null +++ b/runtime/ftplugin/gomod.vim @@ -0,0 +1,14 @@ +" Vim filetype plugin file +" Language: go module file +" Maintainer: YU YUK KUEN <yukkuen.yu...@gmail.com> +" 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<' -- -- 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 vim_dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/E1sKOBW-007VtT-75%40256bit.org.