mirror of
https://github.com/amix/vimrc
synced 2025-02-28 14:12:51 +08:00
Modified YCM mapping
This commit is contained in:
parent
e211a6260b
commit
ac80bfebd2
7
my_configs.vim
Normal file
7
my_configs.vim
Normal 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 = '>*'
|
@ -123,7 +123,9 @@ endif
|
|||||||
vnoremap <silent> gv :call VisualSelection('gv', '')<CR>
|
vnoremap <silent> gv :call VisualSelection('gv', '')<CR>
|
||||||
|
|
||||||
" Open Ack and put the cursor in the right position
|
" 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
|
" When you press <leader>r you can search and replace the selected text
|
||||||
vnoremap <silent> <leader>r :call VisualSelection('replace', '')<CR>
|
vnoremap <silent> <leader>r :call VisualSelection('replace', '')<CR>
|
||||||
|
Loading…
Reference in New Issue
Block a user