exclipy / clang_indexer

Other
121 stars 27 forks source link

vim stuck while quitting ( command ":q!" ) #6

Open MikimotoH opened 11 years ago

MikimotoH commented 11 years ago

I managed to install /usr/local/BerkeleyDB.6.0/ with "configure --enable-cxx", install python binding of bsddb3. And use hacking to redirect bsddb to bsddb3.

Finally, I still encounter problem in "clang_complete.vim":

 NameError: name 'WarmupCache' is not defined

I commented out WarmupCache() in clang_complete.vim; now I can vim c/c++ files without warning. However, I still can NOT safely quit vim. VIM gets stuck, frozen, hangs. The only way to quit is to kill vim process.

My Env: FreeBSD 9.1-RELEASE (GENERIC) #0 r243825 amd64 My VIM version:

VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Apr  9 2013 03:34:57)
Included patches: 1-121, 123-224, 226-234, 236-245, 248-251, 254-335, 337-385, 388-399, 401-433, 435-486, 488-490, 492-526, 528-568, 570-577, 582, 585-602, 604-610, 612-628
, 630-639, 641-649, 651-653, 661-669
Compiled by portbuild@9-49676
Big version with GTK2 GUI.  Features included (+) or not (-):
+arabic +autocmd +balloon_eval +browse ++builtin_terms +byte_offset +cindent +clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments +conceal +cryptv
 +cscope +cursorbind +cursorshape +dialog_con_gui +diff +digraphs +dnd -ebcdic +emacs_tags +eval +ex_extra +extra_search +farsi +file_in_path +find_in_path +float +folding
 -footer +fork() +gettext -hangul_input +iconv +insert_expand +jumplist +keymap +langmap +libcall +linebreak +lispindent +listcmds +localmap +lua/dyn +menu +mksession
+modify_fname +mouse +mouseshape +mouse_dec -mouse_gpm -mouse_jsbterm +mouse_netterm +mouse_sysmouse +mouse_xterm +mouse_urxvt +mouse_sgr +multi_byte +multi_lang -mzscheme
 +netbeans_intg +path_extra +perl +persistent_undo +postscript +printer -profile +python -python3 +quickfix +reltime +rightleft +ruby +scrollbind +signs +smartindent
-sniff +startuptime +statusline -sun_workshop +syntax +tag_binary +tag_old_static -tag_any_white +tcl +terminfo +termresponse +textobjects +title +toolbar +user_commands
+vertsplit +virtualedit +visual +visualextra +viminfo +vreplace +wildignore +wildmenu +windows +writebackup +X11 -xfontset +xim +xsmp_interact +xterm_clipboard -xterm_save

   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
      user exrc file: "$HOME/.exrc"
  system gvimrc file: "$VIM/gvimrc"
    user gvimrc file: "$HOME/.gvimrc"
    system menu file: "$VIMRUNTIME/menu.vim"
  fall-back for $VIM: "/usr/local/share/vim"
Compilation: cc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK  -I/usr/local/include/gtk-2.0 -I/usr/local/include/gio-unix-2.0/ -I/usr/local/include/atk-1.0 -I/usr/local/inc
lude/cairo -I/usr/local/include/pixman-1 -D_THREAD_SAFE -I/usr/local/include/gdk-pixbuf-2.0 -I/usr/local/include/libpng15 -I/usr/local/include/pango-1.0 -D_REENTRANT -I/usr
/local/include/glib-2.0 -I/usr/local/include/freetype2 -I/usr/local/include -I/usr/local/include  -O2 -pipe -fno-strict-aliasing  -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
-I/usr/local/include/tcl8.5
Linking: cc -L/usr/local/lib -lXt -L. -L/usr/lib  -rpath=/usr/lib:/usr/local/lib -pthread -rdynamic    -Wl,-R/usr/local/lib/perl5/5.14.2/mach/CORE   -L/usr/local/lib -Wl,--
as-needed -o vim     -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXcomposite -lXdamage -lXfixes -lX11 -latk-1.0 -lcair
o -lgdk_pixbuf-2.0  -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lm -lgobject-2.0 -lgthread-2.0 -lgmodule-2.0 -pthread -lglib-2.0 -lfreetype -L/usr/local/lib -lfontconfig  -lSM -l
ICE  -lXt  -lXdmcp -lSM -lICE  -lm -lelf  -pthread -ltermlib -liconv -lintl        -Wl,-R/usr/local/lib/perl5/5.14.2/mach/CORE -pthread -Wl,-E  -fstack-protector -L/usr/loc
al/lib  -L/usr/local/lib/perl5/5.14.2/mach/CORE -lperl -lm -lcrypt -lutil  -L/usr/local/lib/python2.7/config -lpython2.7 -lutil -lm -Wl,--export-dynamic    -L/usr/local/lib
 -ltcl85 -lm  -Wl,-R -Wl,/usr/local/lib -L/usr/local/lib -lruby18 -lcrypt -lm -L/usr/lib  -rpath=/usr/lib:/usr/local/lib -pthread -L/usr/local/lib

My "~/.vimrc" snippet:

let g:clang_auto_select=1
let g:clang_complete_auto=0
let g:clang_complete_copen=1
let g:clang_hl_errors=1
let g:clang_periodic_quickfix=0
let g:clang_snippets=1
let g:clang_snippets_engine="clang_complete"
let g:clang_conceal_snippets=1
let g:clang_exec="clang"
let g:clang_user_options=""
let g:clang_auto_user_options="path, .clang_complete"
let g:clang_use_library=1
let g:clang_library_path="/usr/lib/"
let g:clang_sort_algo="priority"
let g:clang_complete_macros=1
let g:clang_complete_patterns=0
nnoremap <Leader>q :call g:ClangUpdateQuickFix()<CR>

let g:clic_filename="../project-index/index.db"
nnoremap <Leader>r :call ClangGetReferences()<CR>
nnoremap <Leader>d :call ClangGetDeclarations()<CR>
nnoremap <Leader>s :call ClangGetSubclasses()<CR>