-
I prefer to keep my source code pushed to my origin. This means that I pretty much always have to do a :Gpush after my :Gcommit, which I find annoying. Is there some way I can create a mapping in Vim, or could I create a PR that has a command named like CC (instead of cc) that would do the push as well? I already tried to do a mapping, but it never worked, I'm assuming that is because it doesn't wait for the :wq on the :Gcommit. Any help appreciated :). Frederick |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
I don't think there is a clean way to do this inside Vim. Use a Git hook maybe? |
Beta Was this translation helpful? Give feedback.
-
Right, but there are commands for cc inside :G, couldn't the :Gpush be
chained with that somehow?
Rick
…On Sat., Feb. 6, 2021, 15:15 Tim Pope, ***@***.***> wrote:
I don't think there is a clean way to do this inside Vim. Use a Git hook
maybe?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1669 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHXNTS3CEVAKJP7YBVEITTS5WPMPANCNFSM4XFIIUOQ>
.
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
:Git commit
returns control to the user once the commit message is opened. So that's the only point you can easily chain off of.