Skip to content
go language support for vim
VimL Shell
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
autoload
ftdetect
ftplugin
indent
plugin
syntax
README.md
install.sh

README.md

Go-Vim

This provide basic support for the Go programming language by Google

go-vim

Installation

`git clone git://github.com/bcnice20/go-vim.git
cd ~/go-vim
./install.sh`

Features

  • This include a modified version of the Autocomplpop-plugin which can by found here
  • Inludes all syntax highlighting and helper files included in the Go distribution
  • Full support for Gocode (once installed)

Notes

for these plugins to work properly you need to add these lines to your vimrc `set ofu=syntaxcomplete#Complete

let Omnifunc_GlobalScopeSearch   = 1

let Omnifunc_DisplayMode         = 1

let Omnifunc_ShowPrototypeInAbbr = 1 "show prototype in pop-up

let Omnifunc_ShowAccess          = 1 "show access in pop-up

let Omnifunc_SelectFirstItem     = 1 "select first item in pop-up

set completeopt=menuone,menu,longest`

In order for autocomplete to work properly you must install gocode gocode can be found here

if you wish to have a look at how i have my .vim and vimrc setup please refer to this

Something went wrong with that request. Please try again.