Skip to content

Instantly share code, notes, and snippets.

@taotetek
Created June 25, 2014 13:45
Show Gist options
  • Save taotetek/2addaff293df2dfad7a0 to your computer and use it in GitHub Desktop.
Save taotetek/2addaff293df2dfad7a0 to your computer and use it in GitHub Desktop.
vimrc
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
Plugin 'tpope/vim-fugitive'
Plugin 'git://github.com/scrooloose/nerdtree'
Plugin 'git://github.com/Valloric/YouCompleteMe'
Plugin 'git://github.com/Lokaltog/vim-easymotion'
Plugin 'git://github.com/wincent/Command-T'
Plugin 'git://github.com/altercation/vim-colors-solarized'
Plugin 'git://github.com/fatih/vim-go'
Plugin 'git://github.com/stephenmckinney/vim-solarized-powerline'
Plugin 'git://github.com/majutsushi/tagbar'
Plugin 'git://github.com/SirVer/ultisnips'
call vundle#end()
filetype plugin indent on
set t_Co=256
syntax enable
set background=dark
colorscheme solarized
call togglebg#map("<F5>")
set listchars=tab:»·,trail:·
set tabstop=4
set ts=8
let mapleader = ","
nmap <leader>ne :NERDTree<cr>
nmap <leader>tb :TagbarToggle<CR>
let g:go_fmt_command = "gofmt"
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>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)
python from powerline.vim import setup as powerline_setup
python powerline_setup()
python del powerline_setup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment