diff options
author | Guangxiong Lin <[email protected]> | 2022-04-09 14:40:08 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2022-04-09 14:40:08 +0800 |
commit | 04bfc884294e090f4f5dae552b7d3429610a8f07 (patch) | |
tree | ec75c8228370925b683f65d26ee4e0ef26d442c6 | |
parent | ccb9dac28217520be7d51bae9b7539ad07e86bab (diff) | |
download | dotfiles-04bfc884294e090f4f5dae552b7d3429610a8f07.tar.gz dotfiles-04bfc884294e090f4f5dae552b7d3429610a8f07.tar.bz2 dotfiles-04bfc884294e090f4f5dae552b7d3429610a8f07.zip |
Allow to return to normal mode by c-g c-g (vim)
-rw-r--r-- | .vim/after/plugin/mucomplete.vim | 5 | ||||
-rw-r--r-- | .vimrc | 1 |
2 files changed, 2 insertions, 4 deletions
diff --git a/.vim/after/plugin/mucomplete.vim b/.vim/after/plugin/mucomplete.vim index 839ef12..3a93af5 100644 --- a/.vim/after/plugin/mucomplete.vim +++ b/.vim/after/plugin/mucomplete.vim @@ -16,11 +16,8 @@ let g:mucomplete#can_complete.cpp = { 'omni': s:cpp_cond } let g:mucomplete#can_complete.objcpp = { 'omni': s:cpp_cond } let g:mucomplete#can_complete.cuda = { 'omni': s:cpp_cond } -let g:mucomplete#chains = {} -let g:mucomplete#chains.default = - \ [ 'ulti', 'user', 'omni', 'tags', 'keyn', 'path' ] - imap <s-tab> <plug>(MUcompleteBwd) +imap <expr> <c-g><c-g> pumvisible() ? "\<plug>(MUcompleteOut)" : "\<esc>" " Integrate with UltiSnips @@ -100,6 +100,7 @@ set tags=./.tags;,.tags " mapping let mapleader=',' " change the key <leader> nnoremap <leader>cd :cd %:p:h<CR> :pwd<CR> +nnoremap <c-g><c-g> <Esc> cnoremap <C-G> <C-C> highlight Pmenu ctermbg=grey |