aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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