From 272f1064c74c745af4ac97ca1e46015fc7a6934d Mon Sep 17 00:00:00 2001 From: Florian Walch Date: Sat, 27 Dec 2014 14:55:02 +0100 Subject: vim-patch:1e8ebf8 Updated runtime files. https://code.google.com/p/vim/source/detail?r=1e8ebf870720e7b671f98f22d653009826304c4f --- runtime/ftplugin/go.vim | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 runtime/ftplugin/go.vim (limited to 'runtime/ftplugin/go.vim') diff --git a/runtime/ftplugin/go.vim b/runtime/ftplugin/go.vim new file mode 100644 index 0000000000..61dc1a13b7 --- /dev/null +++ b/runtime/ftplugin/go.vim @@ -0,0 +1,18 @@ +" Vim filetype plugin file +" Language: Go +" Maintainer: David Barnett (https://github.com/google/vim-ft-go) +" Last Change: 2014 Aug 16 + +if exists('b:did_ftplugin') + finish +endif +let b:did_ftplugin = 1 + +setlocal formatoptions-=t + +setlocal comments=s1:/*,mb:*,ex:*/,:// +setlocal commentstring=//\ %s + +let b:undo_ftplugin = 'setl fo< com< cms<' + +" vim: sw=2 sts=2 et -- cgit