diff --git a/.vimrc b/.vimrc index fcc6bc9..17dccc8 100644 --- a/.vimrc +++ b/.vimrc @@ -157,10 +157,10 @@ let g:ycm_seed_identifiers_with_syntax = 1 let g:ycm_complete_in_comments = 1 let g:ycm_complete_in_strings = 1 "let g:ycm_cache_omnifunc = 0 -let mapleader = "f" -nnoremap o :YcmCompleter GoToInclude +let mapleader = "," nnoremap u :YcmCompleter GoToDeclaration nnoremap i :YcmCompleter GoToDefinition +nnoremap o :YcmCompleter GoToInclude nmap :YcmDiags " a.vim: .h -> .cpp or .cpp -> .h diff --git a/README.md b/README.md index 39c672b..230a77f 100644 --- a/README.md +++ b/README.md @@ -95,9 +95,9 @@ Shortcuts - Display functions, global variables, macro definitions `` - Display static code analysis `` - .h .cpp file quickly switch `` - - Go to declaration `` - - Go to definition `` - - Open the include file `` + - Go to declaration `<, + u>` + - Go to definition `<, + i>` + - Open the include file `<, + o>` - Buffer switch `` - Cursor position switch `` - Fuzzy Find File ``