Skip to content

Instantly share code, notes, and snippets.

@dalgu90
Created May 4, 2016 11:43
Show Gist options
  • Save dalgu90/7636b4d8872bc023637cd3b812a0e9c1 to your computer and use it in GitHub Desktop.
Save dalgu90/7636b4d8872bc023637cd3b812a0e9c1 to your computer and use it in GitHub Desktop.
YCM installation guide(ver. wookayin dotfiles)
(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