autocmd BufNewFile,BufRead,BufEnter *.cpp,*.hpp set omnifunc=omni#cpp#complete#Main
"ctags
map <C-F12> :!ctags -R --c++-kinds=+p --fields=+iaS --extra=+q .<CR>
"omnicppcomplete
imap <C-Space> <C-x><C-o>
let OmniCpp_MayCompleteDot = 0
let OmniCpp_MayCompleteArrow = 0
Software, web, and programming tips: C++, Java, C, Linux, Windows, Cygwin, Firefox, Vim, WWW, RSS
Showing posts with label plugin. Show all posts
Showing posts with label plugin. Show all posts
Thursday, October 11, 2007
VIM - omnicppcomplete
I had to put these in my ~/.vimrc to get omnicppcomplete to work
VIM - NERDTree plugin
Good file explorer.
plugin: link
Add this to ~/.vimrc
plugin: link
Add this to ~/.vimrc
"NERDTree Toggle
noremap <Leader>][ :NERDTreeToggle
Wednesday, June 20, 2007
VIM - minibufexpl
Script: minibufexpl.vim
"MINIBUFEXPLORER Stuff (Enter "\mbe" minus quotes quickly to bring it up)
""Commands:
" Ctrl-PgDown - goto next buffer
" Ctrl-PgUp - goto prev buffer
" \-Backspace-= - toggle minibufexplorer
"let g:miniBufExplMaxSize = 3 "allow up to 3 lines of buffers
let g:miniBufExplModSelTarget=1
"mapmbo :MiniBufExplorer
noremap:bn
inoremap:bn
cnoremap:bn
noremap:bp
inoremap:bp
cnoremap:bp
noremap= :TMiniBufExplorer
noremapu :UMiniBufExplorer
set hid "Hide abandoned buffers in order to not loose undo history
Subscribe to:
Posts (Atom)