Skip to content

Instantly share code, notes, and snippets.

@william8th
Last active February 6, 2018 22:43
Show Gist options
  • Save william8th/ca4bde1b2366fd33f19ecc95e6797420 to your computer and use it in GitHub Desktop.
Save william8th/ca4bde1b2366fd33f19ecc95e6797420 to your computer and use it in GitHub Desktop.
execute pathogen#infect()
syntax on
filetype plugin indent on
set number
let g:go_highlight_functions = 1
let g:go_highlight_methods = 1
let g:go_highlight_fields = 1
let g:go_highlight_types = 1
let g:go_highlight_operators = 1
let g:go_highlight_build_constraints = 1
map <Leader>n :NERDTreeToggle<CR>
let NERDTreeMapActivateNode='<space>'
" Automatically starts NERDTree on startup
" autocmd vimenter * NERDTree
map ,m :NERDTreeToggle<CR>
map ,n :NERDTreeFind<CR>
" Quits NERDTree if it's the only pane
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
" Sets folding to start only at level 20 indentation
set foldmethod=syntax
set foldlevelstart=20
map ,p :CtrlP<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment