1
0
mirror of https://git.decapod.one/brethil/dotfiles synced 2024-11-22 11:31:30 +01:00

vim: add new mappings

This commit is contained in:
bretello 2020-04-06 19:44:51 +02:00
parent 2da2998abe
commit 3101f2047c

View File

@ -139,3 +139,21 @@ nnoremap <leader>G :Git
nnoremap <leader>P :GPush<CR> nnoremap <leader>P :GPush<CR>
nnoremap <leader>M :Git commit<CR> nnoremap <leader>M :Git commit<CR>
nnoremap <leader>u :GitGutterBufferToggle<CR> nnoremap <leader>u :GitGutterBufferToggle<CR>
" OR map keys to use wrapping.
nmap <silent> <C-k> <Plug>(ale_previous_wrap)
nmap <silent> <C-j> <Plug>(ale_next_wrap)
" this is assigned to jedi#goto_stubs()
" nunmap <leader>s
" nnoremap <leader>sv :ALEGoToTypeDefinitionInVSplit<CR>
" nnoremap <leader>sh :ALEGoToTypeDefinitionInSplit<CR>
" nnoremap <leader>st :ALEGoToTypeDefinitionInTab<CR>
" nnoremap <leader> :ALEGoToTypeDefinition<CR>
nmap <leader>sv :ALEGoToDefinitionInVSplit<CR>
nmap <leader>sh :ALEGoToDefinitionInSplit<CR>
nmap <leader>st :ALEGoToDefinitionInTab<CR>
nmap <leader>A :ALEGoToDefinition<CR>
nmap <leader>n :ALEFindReferences<CR>
nmap <leader>r :ALERename<CR>