2024-01-31 14:19:02 +01:00

15 lines
499 B
VimL

" settings for flog
" Only for testing
function Flog_echo_command(command, ...)
echom flog#Format(a:command)
endfunction
setlocal nospell
nnoremap <buffer> <silent> rb :call flog#Exec(flog#Format('Git reset %h'))<CR>
nnoremap <buffer> <silent> rbh :call flog#Exec(flog#Format('Git reset --hard %h'))<CR>
nnoremap <buffer> <silent> cp :call flog#Exec(flog#Format('Git cherry-pick %h'))<CR>
vnoremap <buffer> <silent> cp :<C-U>call flog#Exec(flog#Format("Git cherry-pick %(h'>)^..%(h'<)")<CR>