Skip to content

Instantly share code, notes, and snippets.

@ferryzhou
Created November 8, 2015 15:56
Show Gist options
  • Save ferryzhou/7b44fbc0f566bcc17cc5 to your computer and use it in GitHub Desktop.
Save ferryzhou/7b44fbc0f566bcc17cc5 to your computer and use it in GitHub Desktop.
vimrc for go
execute pathogen#infect()
syntax on
filetype plugin indent on
set number
set backspace=2
set t_Co=256
set background=dark
colorscheme PaperColor
set tabstop=2 softtabstop=2 shiftwidth=2 noexpandtab
let g:go_disable_autoinstall = 0
" Highlight
let g:go_highlight_functions = 1
let g:go_highlight_methods = 1
let g:go_highlight_structs = 1
let g:go_highlight_operators = 1
let g:go_highlight_build_constraints = 1
map <C-n> :NERDTreeToggle<CR>
let g:neocomplete#enable_at_startup = 1
let g:neocomplete#enable_auto_select = 1
inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment