git rebase -i with gvim doesn't wait for me to save?

后端 未结 1 1986
太阳男子
太阳男子 2021-01-25 05:33

When using git rebase -i with core.editor=gvim, the message \"Successfully rebased and updated refs/heads/master.\" appears immediately, before I actually save the file that all

相关标签:
1条回答
  • 2021-01-25 05:42

    When gVim is running in GUI (as opposed to inside the terminal), they will typically launch themselves in the background, so you can continue to work in the terminal after they are launched. This behaviour is normal when Vim is launched through its gvim shortcut. To disable it, use the -f option that forces Vim to stay in foreground, and not relinquish control back to the calling process until it is finished.

    core.editor="gvim -f"
    
    0 讨论(0)
提交回复
热议问题