nvim: ftplugin: Add & fix mapping for jumping between changes

This commit is contained in:
Sanchayan Maity 2021-01-09 16:53:01 +05:30
parent 76a868c8e6
commit 39405e8cab
2 changed files with 5 additions and 2 deletions

View file

@ -0,0 +1,3 @@
" Jump to sections of diff
nmap <buffer> [c ?^@@<CR>
nmap <buffer> ]c /^@@<CR>

View file

@ -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>