aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-04-01 23:37:40 +0800
committerGuangxiong Lin <[email protected]>2022-04-01 23:37:40 +0800
commit797af75cbd0b7edac91cdc9b1409f92671e21dfa (patch)
treef121329cad54c0edff832a4eb4a995ce0a75c323
parent930de6cafd0d683d4b698f54626f7fb4acf157ac (diff)
downloaddotfiles-797af75cbd0b7edac91cdc9b1409f92671e21dfa.tar.gz
dotfiles-797af75cbd0b7edac91cdc9b1409f92671e21dfa.tar.bz2
dotfiles-797af75cbd0b7edac91cdc9b1409f92671e21dfa.zip
Update key binds of vim
-rw-r--r--.vim/after/plugin/keybindings.vim (renamed from .vim/keybindings.vim)0
-rw-r--r--.vim/after/plugin/youcompleteme.vim2
-rw-r--r--.vimrc3
3 files changed, 3 insertions, 2 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)
diff --git a/.vimrc b/.vimrc
index 0c92e69..e41b2b1 100644
--- a/.vimrc
+++ b/.vimrc
@@ -82,8 +82,7 @@ set tags=./.tags;,.tags
" mapping
let mapleader=',' " change the key <leader>
nnoremap <leader>cd :cd %:p:h<CR> :pwd<CR>
-
-source ~/.vim/keybindings.vim
+cnoremap <C-G> <C-C>
highlight Pmenu ctermbg=grey
set exrc