Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add fixup to gitrebase cycling

  • Loading branch information...
commit bda9f09bda79b6154d6a3e2db06a406b002b5f09 1 parent 5fdd2dc
@tpope authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  ftplugin/gitrebase.vim
View
3  ftplugin/gitrebase.vim
@@ -21,13 +21,14 @@ function! s:choose(word)
endfunction
function! s:cycle()
- call s:choose(get({'s':'edit','p':'squash','e':'reword'},getline('.')[0],'pick'))
+ call s:choose(get({'s':'edit','p':'squash','e':'reword','r':'fixup'},getline('.')[0],'pick'))
endfunction
command! -buffer -bar Pick :call s:choose('pick')
command! -buffer -bar Squash :call s:choose('squash')
command! -buffer -bar Edit :call s:choose('edit')
command! -buffer -bar Reword :call s:choose('reword')
+command! -buffer -bar Fixup :call s:choose('fixup')
command! -buffer -bar Cycle :call s:cycle()
" The above are more useful when they are mapped; for example:
"nnoremap <buffer> <silent> S :Cycle<CR>
Please sign in to comment.
Something went wrong with that request. Please try again.