问题描述
当在core.editor = gvim中使用git rebase -i时,显示消息成功地重新建立了基准并更新了refs/heads/master".会立即出现,在我实际保存允许我选择/改写/压缩...提交的文件之前.并弹出gvim消息,提示该文件不再可用.
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 allows me to pick/reword/squash... commits. And gvim pops up with a message that the file is no longer available.
这是我的配置问题,还是将core.editor设置为图形vim无效?
Is this a config issue on my end, or does setting core.editor to graphical vim just not work?
推荐答案
当gVim在GUI中运行时(相对于终端内部),它们通常会在后台启动,因此您可以继续在终端中工作发射后.通过Vim的gvim
快捷方式启动Vim时,这种现象是正常的.要禁用它,请使用-f
选项,该选项强制Vim停留在前台,直到完成后才将控制权交还给调用过程.
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"
这篇关于git rebase -i和gvim不等我保存吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!