diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2013-09-12 16:26:29 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2013-09-12 16:26:29 +0200 |
commit | 591d4d2517b86f6c4b88bf165fb9c01dcb861727 (patch) | |
tree | 39f8cd5e5aa3bae95ceb78f153520f41a201fefb /ftplugin/go.vim | |
parent | 9fa15ece8b6a08fe035669708db50ba76c93b2aa (diff) | |
download | vim-polyglot-591d4d2517b86f6c4b88bf165fb9c01dcb861727.tar.gz vim-polyglot-591d4d2517b86f6c4b88bf165fb9c01dcb861727.zip |
Add go language support
Diffstat (limited to 'ftplugin/go.vim')
-rw-r--r-- | ftplugin/go.vim | 17 |
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 |