Skip to content

Instantly share code, notes, and snippets.

@H4kor
Created March 26, 2011 20:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save H4kor/888618 to your computer and use it in GitHub Desktop.
Save H4kor/888618 to your computer and use it in GitHub Desktop.
My .vimrc
:set autoindent
:set cindent
:set number
set nocp
filetype plugin on
set tags+=~/.vim/tags/cpp
set tags+=~/.vim/tags/sfml
" build tags of your own project with Ctrl-F12
map <C-F12> :!ctags -R --sort=yes --c++-kinds=+p --fields=+iaS --extra=+q .<CR>
" OmniCppComplete
let OmniCpp_NamespaceSearch = 1
let OmniCpp_GlobalScopeSearch = 1
let OmniCpp_ShowAccess = 1
let OmniCpp_ShowPrototypeInAbbr = 1 " show function parameters
let OmniCpp_MayCompleteDot = 1 " autocomplete after .
let OmniCpp_MayCompleteArrow = 1 " autocomplete after ->
let OmniCpp_MayCompleteScope = 1 " autocomplete after ::
let OmniCpp_DefaultNamespaces = ["std", "_GLIBCXX_STD"]
" automatically open and close the popup menu / preview window
au CursorMovedI,InsertLeave * if pumvisible() == 0|silent! pclose|endif
set completeopt=menuone,menu,longest,preview
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment