From ea46480fcd0ec6027ce8404e08121c98d1b2b5f2 Mon Sep 17 00:00:00 2001 From: Peng Li Date: Wed, 6 Jan 2016 19:04:01 +0800 Subject: [PATCH] vim - Fix YouCompleteMe error Fatal Python error: PyThreadState_Get: no current thread --- vim/vimrc | 6 +++++- zsh/zshrc | 6 ++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/vim/vimrc b/vim/vimrc index 12c7833..4489591 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -26,7 +26,7 @@ Bundle 'vim-scripts/gtags.vim' Bundle 'kshenoy/vim-signature' Bundle 'nathanaelkane/vim-indent-guides' Bundle 'rking/ag.vim' -Bundle 'payneseu/mark-2.8.4' +"Bundle 'payneseu/mark-2.8.4' "Bundle 'derekwyatt/vim-fswitch' Bundle 'sjl/gundo.vim' Bundle 'tpope/vim-markdown' @@ -296,6 +296,10 @@ nnoremap sr :FufRenewCache "let g:ycm_collect_identifiers_from_tags_files = 1 "let g:ycm_global_ycm_extra_conf = '~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py' +" this is fix youcompleteme python error +"http://www.cnblogs.com/clivelee/p/4266559.html +"https://github.com/Valloric/YouCompleteMe/issues/18 +let g:ycm_path_to_python_interpreter= '/System/Library/Frameworks/Python.framework/Versions/2.7/bin/python' let g:ycm_auto_trigger = 1 let g:ycm_seed_identifiers_with_syntax = 1 let g:ycm_show_diagnostics_ui = 0 diff --git a/zsh/zshrc b/zsh/zshrc index c60e61d..5a11798 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -251,3 +251,9 @@ merge_logs() { } export MANPATH=$MANPATH:/usr/local/man + + +## vim YouCompleteMe +# https://github.com/Valloric/YouCompleteMe/issues/18 +#export DYLD_FORCE_FLAT_NAMESPACE=1 + -- 2.11.0