summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.github/MAINTAINERS1
-rw-r--r--runtime/ftplugin/gomod.vim14
2 files changed, 15 insertions, 0 deletions
diff --git a/.github/MAINTAINERS b/.github/MAINTAINERS
index 5ebe93a58c..19574990f2 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 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 <yukkuen.yu719@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<'