1 Execute Pathogen#infect ()2 Syntax on3 "ColorScheme Slate4 filetype plugin indent on5 "syn keyword a cin cout endl6 "hi a guifg= #8DA5ED7 8 9Highlight Linenr ctermbg=BlackTenHighlight Linenr ctermfg=Darkgreen One ASet Cindent"automatic indentation using the C + + language" -Set cinoptions={0, 1s,t0,n-2, P2s, (03s,=.5s,>1s,=1s,:1s"to set the specific indentation for A/C + + language")} -Set shiftwidth=4 "(auto) indent 4 spaces for use" the Set Nu -Set tabstop=4 - Set Nobackup - Set Cursorline + "Set Cursorcolumn - Set Autoindent + Set Ruler ASet mouse=a at Set Showmatch - -Map <C-n>:nerdtree<cr> -Map <C-t>:tlisttoggle<cr> -Map <C-A>GGVG -map! <C-A> <Esc>GGVG inMap <F12> gg=G -Vmap <C-c>"+y to +Let tlist_show_one_file=1 "Show only the taglist of one file -Let tlist_exit_onlywindow=1 "automatically exits when TagList is the last window theLet tlist_use_right_window=1 "Show TagList window on the right *Let tlist_sort_type="name" "tag Sort by name $ Panax Notoginseng filetype plugin indent on -Set completeopt=Longest,menu theLet Omnicpp_namespacesearch =2 "Search Namespaces in the current buffer and in included files +Let Omnicpp_showprototypeinabbr =1 "Show function parameter list ALet Omnicpp_maycompletescope =1 "input:: After auto-completion theLet omnicpp_defaultnamespaces = ["STD","_GLIBCXX_STD"] + -Set tags+=~/.vim/tags/cpp_src/Tags $ $Nnoremap <F9> <esc>:W<cr>:!g++-std=c++ One%-o/tmp/a.out &&/tmp/a.out<cr> -Nnoremap <C-F9> <esc>:W<cr>:!g++-std=c++ One%<cr> -Nnoremap <F8> <esc>:W<cr>:!g++-std=c++ One-G%-o/tmp/a.out && gdb/tmp/a.out<cr>
My VIM Configuration