mirror of
1
0
Fork 0

Modified YCM mapping

This commit is contained in:
Cong Wang 2021-10-03 23:55:48 +02:00
parent e211a6260b
commit ac80bfebd2
2 changed files with 10 additions and 1 deletions

7
my_configs.vim Normal file
View File

@ -0,0 +1,7 @@
" set clipboard=unnamedplus
nnoremap <leader>gl :YcmCompleter GoToDeclaration<CR>
nnoremap <leader>gf :YcmCompleter GoToDefinition<CR>
nnoremap <leader>gg :YcmCompleter GoToDefinitionElseDeclaration<CR>
let g:ycm_error_symbol = '>>'
let g:ycm_warning_symbol = '>*'

View File

@ -123,7 +123,9 @@ endif
vnoremap <silent> gv :call VisualSelection('gv', '')<CR>
" Open Ack and put the cursor in the right position
map <leader>g :Ack
" map <leader>g :Ack
" Modified Cong 2021.10.03
map <leader>A :Ack
" When you press <leader>r you can search and replace the selected text
vnoremap <silent> <leader>r :call VisualSelection('replace', '')<CR>