Hi all,
Iβm unable to get syntax highlighting in vim using vim-go. This is my .vimrc
set nu
set tabstop=4 shiftwidth=4
set ignorecase
set smartcase
set incsearch
set paste
set nocompatible
filetype off
" How to setup vundle: https://www.digitalocean.com/community/tutorials/how-to-use-vundle-to-manage-vim-plugins-on-a-linux-vps
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" This is the Vundle package, which can be found on GitHub.
" For GitHub repos, you specify plugins using the
" 'user/repository' format
Plugin 'gmarik/vundle'
" vim-go
" https://github.com/fatih/vim-go
Plugin 'fatih/vim-go'
let g:go_highlight_functions = 1
let g:go_highlight_methods = 1
let g:go_highlight_structs = 1
let g:go_highlight_interfaces = 1
let g:go_highlight_operators = 1
let g:go_highlight_build_constraints = 1
call vundle#end()
filetype plugin indent on
Directory structure of ~/.vim
directory goes like this:
.
βββ bundle
βββ Vundle.vim
β βββ autoload
β βββ doc
β βββ ftplugin
β βββ syntax
β βββ test
βββ data
β βββ boltdb
β βββ cleanerdb
β βββ rocksdb
βββ vim-go
β βββ autoload
β βββ compiler
β βββ doc
β βββ ftdetect
β βββ ftplugin
β βββ gosnippets
β βββ indent
β βββ plugin
β βββ scripts
β βββ syntax
βββ vundle
βββ autoload
βββ doc
βββ ftplugin
βββ syntax
βββ test
Vim version: VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Oct 27 2015 16:22:14)
Thanks in advance,
lafolle