summaryrefslogtreecommitdiff
path: root/misc/vim/ftplugin/go.vim
diff options
context:
space:
mode:
Diffstat (limited to 'misc/vim/ftplugin/go.vim')
-rw-r--r--misc/vim/ftplugin/go.vim17
1 files changed, 17 insertions, 0 deletions
diff --git a/misc/vim/ftplugin/go.vim b/misc/vim/ftplugin/go.vim
new file mode 100644
index 000000000..8066733cf
--- /dev/null
+++ b/misc/vim/ftplugin/go.vim
@@ -0,0 +1,17 @@
+" Copyright 2013 The Go Authors. All rights reserved.
+" Use of this source code is governed by a BSD-style
+" license that can be found in the LICENSE file.
+"
+" go.vim: Vim filetype plugin for Go.
+
+if exists("b:did_ftplugin")
+ finish
+endif
+let b:did_ftplugin = 1
+
+setlocal comments=s1:/*,mb:*,ex:*/,://
+setlocal commentstring=//\ %s
+
+let b:undo_ftplugin = "setl com< cms<"
+
+" vim:ts=4:sw=4:et