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:
parent
a20bffdf67
commit
c41a91e784
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user