From 223ea8f5199aef6b7c6b771c4448282288f18d9b Mon Sep 17 00:00:00 2001 From: johannst Date: Sun, 17 Jul 2016 22:06:11 +0200 Subject: Added vim omnicppcompleten suppoert --- .vim/vimrc_files/plugin_config.vim | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to '.vim/vimrc_files/plugin_config.vim') diff --git a/.vim/vimrc_files/plugin_config.vim b/.vim/vimrc_files/plugin_config.vim index ec61660..d4c0848 100644 --- a/.vim/vimrc_files/plugin_config.vim +++ b/.vim/vimrc_files/plugin_config.vim @@ -21,4 +21,25 @@ endif " +----------------------------+ " | Tagbar | " +----------------------------+ -let g:tagbar_ctags_bin='/u/jstolp/bin/ctags' +let g:tagbar_ctags_bin='/u/jstolp/apps/bin/ctags' +"let g:tagbar_ctags_bin='/home/johannst/apps/bin/ctags' + + +" +----------------------------+ +" | OmniCppComplete | +" +----------------------------+ +" add tags +" set tags+=~/.vim/tags/cpp_tags + +" 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 -- cgit v1.2.3