I'm trying to make my life easier with vim fugitive and ex command line, by creating an abbreviation to a frequent task, which is switching to develop, pulling it and creating new branch.
That's my abbreviation:
cab gcdp G checkout develop <bar> :G pull <bar> :G checkout -b
I was hoping that it will stop execution after last command and allow me to input name of the branch. Apparently it is not default behaviour. Vim will execute every command without stopping and I will get error: switch -b requires a value
I went trough ex command line dosc but could not find anything that would help me.
gcdp
, and I can type the branch name. What do you mean with "hoping that it will stop execution after last command"?<cr>
at the end of it.:gcdp
?space
, but with this one I was pressingenter
. Really do not know why :). Good catch @D.BenKnoble, thanks for the help, mate.