2017-12-14 1 views
0

감지되지하지만 난 .cpp 파일을 열 때 오류 NoExtraConfDetected를 얻을 : 없음 .ycm_extra_conf.py 파일 VIM YouCompleteMe 오류 - NoExtraConfDetected는 : 없음 .ycm_extra_conf.py 파일은 내가 C++에 대한 YouCompleteMe을 설정하고

를 감지하지 않습니다. 의 vimrc 파일은 다음과 같다 :

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

오류 돌볼 것 :

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 

내가 그이 줄을 생각했다.

나는 경로를 따라 갔고 .ycm_extra_conf.py이 있습니다.

내가 하자의 g를 수행 ycm_global_ycm_extra_conf = '$ 사용자/.vim/번들/YouCompleteMe/THIRD_PARTY/ycmd/CPP/YCM/.ycm_extra_conf.py'이의 .vimrc 파일에 잘못 배치?

답변

0

설명 할 수는 없지만 vimrc는 $ USER를 좋아하지 않으므로 la $ HOME에 전체 경로가 필요합니다. 이 시도 :

하자 g를 : ycm_global_ycm_extra_conf = '/home/YOUR_USER/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py'

관련 문제