Skip to content

Instantly share code, notes, and snippets.

@supr
Created November 20, 2014 22:24
Show Gist options
  • Save supr/d9a54541e84c290c1e04 to your computer and use it in GitHub Desktop.
Save supr/d9a54541e84c290c1e04 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'
" A Buffer/file/mru/tag explorer with fuzzy text matching
Plugin 'kien/ctrlp.vim'
" Markdown syntax highlight for Vim
Plugin 'plasticboy/vim-markdown'
" Visualize and traverse your undo tree. A must
Plugin 'sjl/gundo.vim'
" Youcompleteme & syntastic for autocomplete
Plugin 'Valloric/YouCompleteMe'
Plugin 'scrooloose/syntastic'
Plugin 'scrooloose/nerdtree'
Plugin 'nvie/vim-flake8'
Plugin 'rhysd/vim-clang-format'
call vundle#end()
filetype plugin indent on
let g:clang_format#style_options = {"Standard" : "C++11"}
let g:ycm_confirm_extra_conf = 0
autocmd FileType c,cpp nnoremap <buffer><Leader>cf :<C-u>ClangFormat<CR>
autocmd FileType c,cpp vnoremap <buffer><Leader>cf :ClangFormat<CR>
" All tabs to spaces
se et
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment