Skip to content

Commit bda9f09

Browse files
committed
Add fixup to gitrebase cycling
1 parent 5fdd2dc commit bda9f09

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ftplugin/gitrebase.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,14 @@ function! s:choose(word)
2121
endfunction
2222

2323
function! s:cycle()
24-
call s:choose(get({'s':'edit','p':'squash','e':'reword'},getline('.')[0],'pick'))
24+
call s:choose(get({'s':'edit','p':'squash','e':'reword','r':'fixup'},getline('.')[0],'pick'))
2525
endfunction
2626

2727
command! -buffer -bar Pick :call s:choose('pick')
2828
command! -buffer -bar Squash :call s:choose('squash')
2929
command! -buffer -bar Edit :call s:choose('edit')
3030
command! -buffer -bar Reword :call s:choose('reword')
31+
command! -buffer -bar Fixup :call s:choose('fixup')
3132
command! -buffer -bar Cycle :call s:cycle()
3233
" The above are more useful when they are mapped; for example:
3334
"nnoremap <buffer> <silent> S :Cycle<CR>

0 commit comments

Comments
 (0)