]> git.rmz.io Git - dotfiles.git/blobdiff - vim/ftplugin/cpp.vim
vim: map `:YcmCompleter Goto` in ftplugin
[dotfiles.git] / vim / ftplugin / cpp.vim
index 7dd40e60d9239aa5f98ec1e98a78c22e39cda2df..5f68c35097d7c46754c2c6c087fd6e9198f91142 100644 (file)
@@ -21,6 +21,9 @@ augroup fswitch
     au BufEnter *.cpp let b:fswitchlocs = 'reg:/\Csource/include/'
 augroup END
 
+nnoremap <buffer> gd :YcmCompleter GoTo<CR>
+nnoremap <buffer> <C-W>d :vs<CR>:YcmCompleter GoTo<CR>
+
 setlocal foldmethod=syntax
 " set foldlevel according to number of matches of 'namespace' and 'class' not
 " containing ';'