2017-12-14 5 views
0

を検出していない私は、C++用のYouCompleteMeを設定していますが、私は.cppファイルを開いたとき、私はエラーを取得するNoExtraConfDetected:いいえ.ycm_extra_conf.pyファイルがVIM YouCompleteMeはNoExtraConfDetectedをエラー - :いいえ.ycm_extra_conf.pyファイルが

検出されません。 vimrcファイルは次のようになります。

set nocompatible " be iMproved, required filetype off " required 
" set the runtime path to include Vundle and initialize 
set rtp+=~/.vim/bundle/Vundle.vim 
call vundle#begin() 
" alternatively, pass a path where Vundle should install plugins 
"call vundle#begin('~/some/path/here') 

" let Vundle manage Vundle, required 

Plugin 'VundleVim/Vundle.vim' 

Plugin 'rdnetto/YCM-Generator' 

Plugin 'Valloric/YouCompleteMe' 
let g:ycm_global_ycm_extra_conf = '$USER/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py' 

" All of your Plugins must be added before the following line 
call vundle#end() " required 
filetype plugin indent on " required 

私は、この行と思った:

let g:ycm_global_ycm_extra_conf = '$USER/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py' 

は、エラーの世話をするでしょう。

私はパスに従い、.ycm_extra_conf.pyがあります。

私はのlet gを持っていますか:ycm_global_ycm_extra_conf = '$ USER /て.vim /バンドル/ YouCompleteMe/THIRD_PARTY/ycmd/CPP/YCM/.ycm_extra_conf.py' をはファイル.vimrcに間違って置か?

答えて

0

説明できませんが、vimrcは$ USERを気に入らず、そこには完全なパスが必要です。

のlet G:これを試してみてくださいycm_global_ycm_extra_conf = '/home/YOUR_USER/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py'

関連する問題