set nocompatible " be iMproved, requiredfiletype off " required" 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 repoPlugin 'tpope/vim-fugitive'" plugin from http://vim-scripts.org/vim/scripts.html" Plugin 'L9'" Git plugin not hosted on GitHub"Plugin 'git://git.wincent.com/command-t.git'" git repos on your local machine (i.e. when working on your own plugin)"Plugin 'file:///home/gmarik/path/to/plugin'" 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/'}" Install L9 and avoid a Naming conflict if you've already installed a" different version somewhere else." Plugin 'ascenator/L9', {'name': 'newL9'}Plugin 'mhinz/vim-startify'Plugin 'aperezdc/vim-template'Plugin 'thinca/vim-quickrun'Plugin 'jiangmiao/auto-pairs'Plugin 'Chiel92/vim-autoformat'"" Theme PluginPlugin 'sjl/badwolf'" 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"" see :h vundle for more details or wiki for FAQ" Put your non-Plugin stuff after this line"" display settingsset t_Co=256syntax enablesyntax onset background=darkcolorscheme badwolfset cursorlineset cursorcolumnset number" file encodingset fileencodings=ucs-bom,utf-8,cp936,gb18030,big5,euc-jp,euc-kr,latin1" enable mouseset mouse=a" indentset expandtabset tabstop=4set softtabstop=4set shiftwidth=4" foldset nofoldenableset foldmethod=syntax" searchset hlsearchset incsearch" caseset ignorecaseset smartcase" keep 200 lines of command line historyset history=200" Show a few lines of context around the cursor." Note that this makes the text scroll" if you mouse-click near the start or end of the window.set scrolloff=5set sidescrolloff=5" display completion matches in a status lineset wildmenu" display incomplete commandsset showcmd" Allow backspacing over everything in insert mode.set backspace=eol,start,indent" Use ; aslet mapleader = ";"" Quick select whole filennoremap a ggVG" Quick save or quit filennoremap w :w nnoremap q :q nnoremap fq :q! " Copy to and paste from system clipboardnnoremap y "+ynnoremap p "+pnnoremap fz ggVG"+y" vim smart autocompleteset wildmenu" man the informationnnoremap man :Man """" Plugin settings" vim-startifylet g:startify_files_number = 20" vim-templatelet g:templates_no_autocmd=1let g:templates_directory='~/.vim/templates'nnoremap tp2 :Template tp2 " vim-quickrunlet g:quickrun_config = { \ "_" : { \ "outputter" : "message", \ }, \}let g:quickrun_no_default_key_mappings = 1nmap (quickrun)" YouCompleteMelet g:ycm_collect_identifiers_from_tags_files=1set tags+=~/.tags/stdcpp.tagslet g:ycm_global_ycm_extra_conf='~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py'let g:ycm_complete_in_comments=1let g:ycm_cache_omnifunc=0let g:ycm_seed_identifiers_with_syntax=1set completeopt-=preview" Airlinelet g:airline_theme='luna'let g:airline_powerline_fonts = 1if !exists('g:airline_symbols') let g:airline_symbols = {}endiflet g:airline_symbols.linenr = '&'" AutoFormatlet g:formatdef_my_cpp = '"astyle --style=google"'let g:formatters_cpp = ['my_cpp']"au BufWrite * :Autoformatnmap fmt (Autoformat)""" My Own Functionfunc! CppDebug() exe "silent !g++ -O0 -std=c++14 -g % -o %<" exe "!gdb %<" exe "silent !rm -rf %<"endfuncnnoremap db :call CppDebug() map :call Run() func! Run() exe "silent w" exe "silent !g++ % -o %<" exe "!./%<" exe "silent !rm %<"endf