Created
May 4, 2016 05:45
-
-
Save bckim92/d35c6a01e355f8b7e278183f840b15ca to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(http://www.alexeyshmalko.com/2014/youcompleteme-ultimate-autocomplete-plugin-for-vim/ 따라서 완전히 그대로 해도 될 것 같긴 하지만) | |
1. ~/.vim/plugins.vim 에 | |
Plug 'Valloric/YouCompleteMe' | |
라인 추가 | |
2. vim +PlugInstall | |
3. cd ~/.vim/plugged/YouCompleteMe | |
./install.sh --clang-completer | |
4. ~/.vimrc 의 적당한 곳에 | |
" YouCompleteMe {{ | |
let g:ycm_global_ycm_extra_conf = "~/.vim/.ycm_extra_conf.py" | |
" }}} | |
라인 추가 | |
(선택: 선언, 정의 찾아가는 키맵핑. 위 라인 중간에 추가 | |
nnoremap <leader>gl :YcmCompleter GoToDeclaration<CR> | |
nnoremap <leader>gf :YcmCompleter GoToDefinition<CR> | |
nnoremap <leader>gg :YcmCompleter GoToDefinitionElseDeclaration<CR> | |
) | |
5. cp ~/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py ~/.vim |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment