From b95409a110b36eee9c2b30fefe04d1767758617f Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Thu, 7 Apr 2016 11:15:54 +0100 Subject: [PATCH] vim: map `:YcmCompleter Goto` in ftplugin --- vim/ftplugin/cpp.vim | 3 +++ vim/vimrc | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/vim/ftplugin/cpp.vim b/vim/ftplugin/cpp.vim index 7dd40e6..5f68c35 100644 --- a/vim/ftplugin/cpp.vim +++ b/vim/ftplugin/cpp.vim @@ -21,6 +21,9 @@ augroup fswitch au BufEnter *.cpp let b:fswitchlocs = 'reg:/\Csource/include/' augroup END +nnoremap gd :YcmCompleter GoTo +nnoremap d :vs:YcmCompleter GoTo + setlocal foldmethod=syntax " set foldlevel according to number of matches of 'namespace' and 'class' not " containing ';' diff --git a/vim/vimrc b/vim/vimrc index 25fa460..cb6ecea 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -691,7 +691,6 @@ let g:ycm_complete_in_comments = 1 let g:ycm_complete_in_strings = 1 let g:ycm_autoclose_preview_window_after_insertion = 0 "let g:ycm_extra_conf_vim_data = ['%:p'] -nnoremap gd :YcmCompleter GoTo " vim-easy-align {{{2 " start interactive EasyAlign in visual mode -- 2.48.1