Created
January 12, 2016 11:44
-
-
Save Soreil/b382dcbbbb3d1fb1b492 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'VundleVim/Vundle.vim' | |
Plugin 'fatih/vim-go' | |
Plugin 'majutsushi/tagbar' | |
Plugin 'scrooloose/nerdtree' | |
Plugin 'chriskempson/base16-vim' | |
Plugin 'ervandew/supertab' | |
call vundle#end() | |
filetype plugin indent on | |
syntax on | |
set wildmenu | |
set number | |
"Indentation rules | |
set smarttab | |
"1 tab == 4 spaces | |
set shiftwidth=4 | |
set tabstop=4 | |
let base16colorspace=256 " Access colors present in 256 colorspace | |
colorscheme base16-default | |
"set background=light | |
"SuperTab | |
let g:SuperTabDefaultCompletionType = "context" | |
"Hotkeys | |
nmap <F3> :NERDTreeToggle<CR> | |
nmap <F4> :TagbarToggle<CR> | |
set pastetoggle=<F5> | |
"vim-go options | |
au FileType go nmap <Leader>s <Plug>(go-implements) | |
au FileType go nmap <Leader>i <Plug>(go-info) | |
au FileType go nmap <Leader>gd <Plug>(go-doc) | |
au FileType go nmap <Leader>gv <Plug>(go-doc-vertical) | |
au FileType go nmap <Leader>gb <Plug>(go-doc-browser) | |
au FileType go nmap <leader>r <Plug>(go-run) | |
au FileType go nmap <leader>b <Plug>(go-build) | |
au FileType go nmap <leader>t <Plug>(go-test) | |
au FileType go nmap <leader>c <Plug>(go-coverage) | |
au FileType go nmap <Leader>ds <Plug>(go-def-split) | |
au FileType go nmap <Leader>dv <Plug>(go-def-vertical) | |
au FileType go nmap <Leader>dt <Plug>(go-def-tab) | |
au FileType go nmap <Leader>e <Plug>(go-rename) | |
"Config changes for vim-go | |
let g:go_fmt_command = "goimports" | |
" Set extra options when running in GUI mode | |
if has("gui_running") | |
set background=light | |
colorscheme summerfruit256 | |
set guioptions-=T | |
set guioptions+=e | |
set guioptions-=L | |
set guioptions-=r | |
set guioptions-=b | |
set t_Co=256 | |
set guitablabel=%M\ %t | |
set guifont=Inconsolata\ Medium\ 10 | |
endif | |
" lazy method of appending this onto your .vimrc ":w! >> ~/.vimrc" | |
" ------------------------------------------------------------------ | |
" this block of commands has been autogenerated by solarized.vim and | |
" includes the current, non-default Solarized option values. | |
" To use, place these commands in your .vimrc file (replacing any | |
" existing colorscheme commands). See also ":help solarized" | |
" ------------------------------------------------------------------ | |
" Solarized Colorscheme Config | |
" ------------------------------------------------------------------ | |
"let g:solarized_contrast="high" "default value is normal | |
"let g:solarized_hitrail=1 "default value is 0 | |
"syntax enable | |
"set background=dark | |
"colorscheme solarized | |
" ------------------------------------------------------------------ | |
" The following items are available options, but do not need to be | |
" included in your .vimrc as they are currently set to their defaults. | |
" let g:solarized_termtrans=0 | |
" let g:solarized_degrade=0 | |
" let g:solarized_bold=1 | |
" let g:solarized_underline=1 | |
" let g:solarized_italic=1 | |
" let g:solarized_termcolors=16 | |
" let g:solarized_visibility="normal" | |
" let g:solarized_diffmode="normal" | |
" let g:solarized_menu=1 | |
"background toggle func | |
map <Leader>bg :let &background = ( &background == "dark"? "light" : "dark" )<CR> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment