mirror of
https://github.com/golang/go
synced 2024-11-25 12:37:56 -07:00
c1e780c4e4
This basic Vim ftplugin sets the 'comments' and 'commentstring' settings to sensible values. Future filetype settings for Go would go in the same file. The ftplugin was added as misc/vim/ftplugin/go/go.vim, this way the installation instructions in readme.txt remain valid. Fixes #5715. R=dsymonds CC=gobot, golang-dev https://golang.org/cl/10323043
18 lines
395 B
VimL
18 lines
395 B
VimL
" 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
|