Skip to content

Instantly share code, notes, and snippets.

@ixtli
Last active December 29, 2015 23:49
Show Gist options
  • Save ixtli/7745172 to your computer and use it in GitHub Desktop.
Save ixtli/7745172 to your computer and use it in GitHub Desktop.
my vimrc (install Vundle first: https://github.com/gmarik/Vundle.vim)
" Requires Vundle: https://github.com/gmarik/Vundle.vim
" Every vimconfig should start like this:
syntax on
" Basic config
set nocompatible
set autoindent
set smartindent
set copyindent
set preserveindent
set backspace=indent,eol,start
set encoding=utf-8
set ts=2 " tabs == 2 spaces
set number " show line numbers
set list " show invisible characters
set listchars=tab:▸\ ,trail:▝,eol:¬ " but only show tabs and trailing whitespace
set t_Co=256 " Use 256 colors
" The all-important tab configuration
set shiftwidth=2
set tabstop=2
" Configure Vundle
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" Bundles on github
Bundle 'gmarik/vundle'
Bundle 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/'}
" Bundle 'airblade/vim-gitgutter'
Bundle 'octol/vim-cpp-enhanced-highlight'
Bundle 'majutsushi/tagbar'
Bundle 'vim-scripts/AutoTag'
Bundle 'vim-scripts/TagHighlight'
Bundle 'scrooloose/nerdcommenter'
Bundle 'scrooloose/syntastic'
Bundle 'Valloric/YouCompleteMe'
" vim-script bundle repos
Bundle 'L9'
Bundle 'FuzzyFinder'
" All of your Plugins must be added before the following line
call vundle#end() " required
" Apparently this is required by vundle
filetype plugin indent on
" Tell syntastic that we want to be using C++11
let g:syntastic_cpp_compiler = 'clang++'
let g:syntastic_cpp_compiler_options = ' -std=c++11 -stdlib=libc++'
let g:syntastic_enable_signs = 1
" Some fixes for dumb ymc configs
let g:ycm_confirm_extra_conf=0
let g:ycm_collect_identifiers_from_tags_files = 1
let g:ycm_seed_identifiers_with_syntax = 1
" Configure gitgutter
" let g:gitgutter_eager = 0
" let g:gitgutter_highlight_lines = 1
" Configure Powerline
let g:Powerline_symbols = 'unicode'
set laststatus=2
" Configure FuzzyFinder
nmap ,f :FufFileWithCurrentBufferDir<CR>
nmap ,b :FufBuffer<CR>
nmap ,t :FufTaggedFile<CR>
" Automatically lookup tags in the current directory and up to root
set tags=./tags;/
" Set custom colors
highlight SpecialKey ctermfg=236
highlight NonText ctermfg=236
highlight GitGutterAdd ctermbg=darkgrey ctermfg=green
highlight GitGutterChange ctermbg=darkgrey ctermfg=yellow
highlight GitGutterDelete ctermbg=darkgrey ctermfg=red
highlight GitGutterChangeDelete ctermbg=darkgrey ctermfg=darkmagenta
highlight SignColumn ctermbg=darkgrey
highlight LineNr ctermfg=grey ctermbg=darkgrey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment