2014-07-10 4 views

답변

4

complete 옵션으로 게임을해야합니다.

set complete-=i 

하지만 당신은 제거 할 수 있습니다 : 도움말 파일에서

, 개인적으로

The default is ".,w,b,u,t,i", which means to scan: 
    1. the current buffer 
    2. buffers in other windows 
    3. other loaded buffers 
    4. unloaded buffers 
    5. tags 
    6. included files 

, 나는 파일이 정말 도움이되었다 포함 제거하는 것을 언급, 그래서 한 제의 .vimrc에, 내가 사용 (또는 추가) 할 수 있습니다.

자세한 내용은 :help 'complete'을 참조하십시오.

2

:help i_ctrl-n는 말한다 :

Find next match for words that start with the 
keyword in front of the cursor, looking in places 
specified with the 'complete' option. The found 
keyword is inserted in front of the cursor. 

다음 단계는 오히려 명백하다,있다 없다가?

4

"가끔"인 경우 (큰 프로젝트, 포함 파일이 많은 복잡한 C 파일) ... <C-x><C-n> 로컬 파일 완성을 사용할 수도 있습니다 (:help i_CTRL-X_CTRL-N 참조). 이렇게하면 기본 완성 기능을 사용할 수 있으므로 'complete' 옵션을 사용하지 않아도됩니다.

+0

위대하고 유연한 솔루션. 감사. –

관련 문제