" 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

if !exists("g:go_auto_type_info")
    let g:go_auto_type_info = 0
endif


setlocal comments=s1:/*,mb:*,ex:*/,://
setlocal commentstring=//\ %s

setlocal noexpandtab


" use old regexpengine 
set re=1

let b:undo_ftplugin = "setl com< cms<"

" Set gocode completion
setlocal omnifunc=go#complete#Complete

" GoInfo automatic update
if g:go_auto_type_info != 0
    setlocal updatetime=300
    au! CursorHold *.go nested call go#complete#Info()
endif

compiler go

" vim:ts=4:sw=4:et

" 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

if !exists("g:go_auto_type_info")
    let g:go_auto_type_info = 0
endif


setlocal comments=s1:/*,mb:*,ex:*/,://
setlocal commentstring=//\ %s

setlocal noexpandtab

let b:undo_ftplugin = "setl com< cms<"

" Set gocode completion
setlocal omnifunc=go#complete#Complete

" GoInfo automatic update
if g:go_auto_type_info != 0
    setlocal updatetime=300
    au! CursorHold *.go nested call go#complete#Info()
endif

compiler go

" vim:ts=4:sw=4:et

Remove regexpengine settings, it's global
Remove regexpengine settings, it's global

ev46/vim-go,vim-IDE/vim-go,DrGo/vim-go,andviro/vim-go,vim-IDE/vim-go,ebfe/vim-go,hiteshjoshi/vim-go,emmagras/vim-go,wingyplus/vim-go,lioonline/vim-go,marcosnils/vim-go,prodis/vim-go,mrnugget/vim-go,cjqian/vim-go,shaunstanislaus/vim-go,syohex/vim-go,apriendeau/vim-go,phemmer/vim-go,mizoR/vim-go,vashstorm/vim-go,andviro/vim-go,wheelcomplex/vim-go,youleiy/vim-go,glittershark/vim-go,vim-IDE/vim-go,rxwen/vim-go,t-yuki/vim-go,nowk/vim-go,mechmind/vim-go,jacobxk/vim-go