nvim: ftplugin: Add & fix mapping for jumping between changes
This commit is contained in:
parent
76a868c8e6
commit
39405e8cab
2 changed files with 5 additions and 2 deletions
3
nvim/.config/nvim/after/ftplugin/diff.vim
Normal file
3
nvim/.config/nvim/after/ftplugin/diff.vim
Normal file
|
@ -0,0 +1,3 @@
|
|||
" Jump to sections of diff
|
||||
nmap <buffer> [c ?^@@<CR>
|
||||
nmap <buffer> ]c /^@@<CR>
|
|
@ -3,5 +3,5 @@ setlocal textwidth=72
|
|||
setlocal iskeyword+=-
|
||||
|
||||
" Jump to sections of diff
|
||||
nnoremap <buffer> [c ?^@@<CR>
|
||||
nnoremap <buffer> ]c /^@@<CR>
|
||||
nmap <buffer> [c ?^@@<CR>
|
||||
nmap <buffer> ]c /^@@<CR>
|
||||
|
|
Loading…
Reference in a new issue