34 lines
1.2 KiB
Plaintext
34 lines
1.2 KiB
Plaintext
|
" configure tags - add additional tags here or comment out not-used ones
|
||
|
set tags+=~/.vim/tags/cpp
|
||
|
set tags+=~/.vim/tags/gl
|
||
|
set tags+=~/.vim/tags/sdl
|
||
|
set tags+=~/.vim/tags/qt4
|
||
|
set tags+=~/.vim/tags/irrlicht
|
||
|
" build tags of your own project with F11
|
||
|
map <F11> :!ctags -R --sort=yes --c++-kinds=+p --fields=+iaS --extra=+q .<CR>
|
||
|
map <F10> :mksession! Session.vim \| wviminfo! viminfo<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
|
||
|
|
||
|
" for latex-suite
|
||
|
filetype plugin on
|
||
|
set grepprg=grep\ -nH\ $*
|
||
|
let g:tex_flavor='latex'
|
||
|
let g:Tex_ViewRule_dvi = 'okular'
|
||
|
let g:Tex_ViewRule_pdf = 'okular'
|
||
|
|
||
|
set modeline
|
||
|
set expandtab
|
||
|
set listchars+=precedes:<,extends:>
|