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

vim: add <Leader>] and <Leader>[ to move between definitions

`<Leader>[` moves to the start of the previous method/function/class
definition, `<Leader>]` to the start of the next
This commit is contained in:
bretello 2023-11-22 12:52:22 +01:00
parent a20bffdf67
commit c41a91e784
Signed by: brethil
GPG Key ID: 876AAC6290170FE7

View File

@ -32,6 +32,11 @@ nmap <C-W>n :tabnext<CR>
nmap <C-W>p :tabprev<CR>
nmap <C-W>N :tabnew<CR>
" move betweween methods, centering the method on each movement
" [m moves to the start of the previous method, ]m to the end
map <Leader>] ]mzz
map <Leader>[ [mzz
" open quickfix
nmap <leader>cc :botright cope<CR>
" open loclist