diff options
author | Guangxiong Lin <[email protected]> | 2022-04-01 23:37:40 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2022-04-01 23:37:40 +0800 |
commit | 797af75cbd0b7edac91cdc9b1409f92671e21dfa (patch) | |
tree | f121329cad54c0edff832a4eb4a995ce0a75c323 /.vim | |
parent | 930de6cafd0d683d4b698f54626f7fb4acf157ac (diff) | |
download | dotfiles-797af75cbd0b7edac91cdc9b1409f92671e21dfa.tar.gz dotfiles-797af75cbd0b7edac91cdc9b1409f92671e21dfa.tar.bz2 dotfiles-797af75cbd0b7edac91cdc9b1409f92671e21dfa.zip |
Update key binds of vim
Diffstat (limited to '.vim')
-rw-r--r-- | .vim/after/plugin/keybindings.vim (renamed from .vim/keybindings.vim) | 0 | ||||
-rw-r--r-- | .vim/after/plugin/youcompleteme.vim | 2 |
2 files changed, 2 insertions, 0 deletions
diff --git a/.vim/keybindings.vim b/.vim/after/plugin/keybindings.vim index b76eb27..b76eb27 100644 --- a/.vim/keybindings.vim +++ b/.vim/after/plugin/keybindings.vim diff --git a/.vim/after/plugin/youcompleteme.vim b/.vim/after/plugin/youcompleteme.vim index 6f7a266..1e1e6c4 100644 --- a/.vim/after/plugin/youcompleteme.vim +++ b/.vim/after/plugin/youcompleteme.vim @@ -31,8 +31,10 @@ let g:ycm_filetype_blacklist = { \ } nnoremap gd :YcmCompleter GoTo<CR> +nnoremap gy :YcmCompleter GoToType<CR> nnoremap gr :YcmCompleter GoToReferences<CR> nnoremap gi :YcmCompleter GoToImplementation<CR> +nnoremap rn :YcmCompleter RefactorRename<space> nmap <leader>fs <plug>(YCMFindSymbolInDocument) nmap <leader>fS <plug>(YCMFindSymbolInWorkspace) nmap K <plug>(YCMHover) |