set nocompatible " be iMproved, required" ? (key)let mapleader=","filetype off "requiredset foldmethod=indent" set the runtime path to include Vundle and initializeset rtp+=~/.vim/bundle/Vundle.vimcall vundle#begin()" alternatively, pass a path where Vundle should install plugins"call vundle#begin('~/some/path/here')" let Vundle manage Vundle, requiredPlugin 'VundleVim/Vundle.vim'" The following are examples of different formats supported." Keep Plugin commands between vundle#begin/end." plugin on GitHub repo" Plugin 'tpope/vim-fugitive'" plugin from http://vim-scripts.org/vim/scripts.htmlPlugin 'L9'" The sparkup vim script is in a subdirectory of this repo called vim." Pass the path to set the runtimepath properly." Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}" Plugin 'nsf/gocode',{'rtp':'vim/'}Plugin 'fatih/vim-go'Bundle 'scrooloose/nerdtree'"Bundle 'cespare/vim-golang'" Bundle 'dgryski/vim-godef'Plugin 'Valloric/YouCompleteMe'" Plugin 'SirVer/ultisnips'" Plugin 'majutsushi/tagbar'Plugin 'vim-scripts/taglist.vim'" Plugin 'junegunn/vim-emoji'" Plugin 'rjohnsondev/vim-compiler-go'" Plugin 'dgryski/vim-godef'" Plugin 'davidhalter/jedi-vim'" Plugin 'scrooloose/syntastic'" All of your Plugins must be added before the following linecall vundle#end() " requiredfiletype plugin indent on " required" To ignore plugin indent changes, instead use:"filetype plugin on"" Brief help" :PluginList - lists configured plugins" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate" :PluginSearch foo - searches for foo; append `!` to refresh local cache" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal"nmap hnmap lnmap jnmap k" see :h vundle for more details or wiki for FAQ" Put your non-Plugin stuff after this linemap :NERDTreeToggle map :b 1 Bundle 'majutsushi/tagbar'nmap t :TagbarToggle let g:tagbar_width = 25autocmd VimEnter * nested :call tagbar#autoopen(1)autocmd BufWritePre *.go:Fmtlet g:tagbar_right = 1let g:tagbar_type_go = { \ 'ctagstype' : 'go', \ 'kinds' : [ \ 'p:package', \ 'i:imports:1', \ 'c:constants', \ 'v:variables', \ 't:types', \ 'n:interfaces', \ 'w:fields', \ 'e:embedded', \ 'm:methods', \ 'r:constructor', \ 'f:functions' \ ], \ 'sro' : '.', \ 'kind2scope' : { \ 't' : 'ctype', \ 'n' : 'ntype' \ }, \ 'scope2kind' : { \ 'ctype' : 't', \ 'ntype' : 'n' \ }, \ 'ctagsbin' : 'gotags', \ 'ctagsargs' : '-sort -silent' \ }let g:molokai_original = 1let g:rehash256 = 1set sw=4colorscheme molokaiset nuset ts=4set expandtabsyntax onlet g:go_highlight_functions = 1let g:go_highlight_methods = 1let g:go_highlight_structs = 1let g:go_highlight_operators = 1let g:go_highlight_build_constraints = 1let g:go_fmt_command = "goimports"let g:go_fmt_fail_silently = 1let g:syntastic_go_checkers = ['golint', 'govet', 'errcheck']let g:syntastic_mode_map = { 'mode': 'active', 'passive_filetypes': ['go'] }let g:UltiSnipsExpandTrigger=" ""godef"will open the definition in a new tablet g:godef_split=2let g:godef_same_file_in_same_window=1au FileType go nmap r (go-run)au FileType go nmap b (go-build)au FileType go nmap T (go-test)au FileType go nmap c (go-coverage)au FileType go nmap ds (go-def-split)au FileType go nmap dv (go-def-vertical)au FileType go nmap dt (go-def-tab)"set statusline+=%#warningmsg#"set statusline+=%{SyntasticStatuslineFlag()}"set statusline+=%*let g:syntastic_always_populate_loc_list = 1let g:syntastic_auto_loc_list = 1let g:syntastic_check_on_open = 1let g:syntastic_check_on_wq = 0set rtp+=$GOPATH/src/github.com/golang/lint/misc/vimautocmd BufWritePost,FileWritePost *.go execute 'Lint' | cwindow""if emoji#available()" let g:gitgutter_sign_added = emoji#for('small_blue_diamond')" let g:gitgutter_sign_modified = emoji#for('small_orange_diamond')" let g:gitgutter_sign_removed = emoji#for('small_red_triangle')" let g:gitgutter_sign_modified_removed = emoji#for('collision')" endif"eset completefunc=emoji#completemap :%s/:\([^:]\+\):/\=emoji#for(submatch(1), submatch(0))/g