<C-N> and <C-P> in :Gstatus cycle between files

This commit is contained in:
Tim Pope
2010-09-15 23:23:54 -04:00
parent 24efca8f4f
commit 119fd9e1ad
2 changed files with 5 additions and 1 deletions

View File

@@ -1395,6 +1395,8 @@ function! s:BufReadIndex()
xnoremap <buffer> <silent> - :<C-U>execute <SID>StageToggle(line("'<"),line("'>"))<CR>
nnoremap <buffer> <silent> p :<C-U>execute <SID>StagePatch(line('.'),line('.')+v:count1-1)<CR>
xnoremap <buffer> <silent> p :<C-U>execute <SID>StagePatch(line("'<"),line("'>"))<CR>
nnoremap <buffer> <silent> <C-N> :call search('^#\t.*','W')<Bar>.<CR>
nnoremap <buffer> <silent> <C-P> :call search('^#\t.*','Wbe')<Bar>.<CR>
call s:JumpInit()
nunmap <buffer> P
nunmap <buffer> ~