From 8b3418cab8eb5267b3a5743e4d5fe5f698d48bc8 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Wed, 27 Sep 2017 19:57:29 +0200 Subject: Update --- ftplugin/gitrebase.vim | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'ftplugin/gitrebase.vim') diff --git a/ftplugin/gitrebase.vim b/ftplugin/gitrebase.vim index e3e015bb..032aba31 100644 --- a/ftplugin/gitrebase.vim +++ b/ftplugin/gitrebase.vim @@ -28,11 +28,12 @@ function! s:cycle() 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 -range Pick :,call s:choose('pick') +command! -buffer -bar -range Squash :,call s:choose('squash') +command! -buffer -bar -range Edit :,call s:choose('edit') +command! -buffer -bar -range Reword :,call s:choose('reword') +command! -buffer -bar -range Fixup :,call s:choose('fixup') +command! -buffer -bar -range Drop :,call s:choose('drop') command! -buffer -bar Cycle :call s:cycle() " The above are more useful when they are mapped; for example: "nnoremap S :Cycle -- cgit v1.2.3