summaryrefslogtreecommitdiffstats
path: root/ftplugin/go
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2013-12-26 03:34:22 +0100
committerAdam Stankiewicz <sheerun@sher.pl>2013-12-26 03:34:22 +0100
commita26bebbeb94207698d20f43485098ead64bb6c67 (patch)
treeac829c223694513dfc9b90c592001d2ea31d07d4 /ftplugin/go
parentedd5ee63e66d9ef166034d9ac5bed132f501ecb9 (diff)
downloadvim-polyglot-a26bebbeb94207698d20f43485098ead64bb6c67.tar.gz
vim-polyglot-a26bebbeb94207698d20f43485098ead64bb6c67.zip
Update
Diffstat (limited to '')
-rw-r--r--ftplugin/go.vim17
1 files changed, 17 insertions, 0 deletions
diff --git a/ftplugin/go.vim b/ftplugin/go.vim
new file mode 100644
index 00000000..8066733c
--- /dev/null
+++ b/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