git commit 不进入 Vim 编辑模式,提示 ihint: Waiting for your editor to close the file...

git commit 不进入 Vim 模式问题

输入 git commit 后 提示 ihint: Waiting for your editor to close the file... 然后自动退出提交。

一般是 git 默认编辑器使用了其他的 如 cat

复制代码
// 用此命令查看当前默认编辑器
git config --get core.editor
cat

解决方法:

重新把默认编辑器设置为 Vim :

复制代码
git config --global core.editor "vim"

参考内容:常用编程工具-Git使用教程

相关推荐
酷飞飞27 分钟前
使用 WSL + VSCode 搭建 ESP32/ESP32-S2 开发环境(2026 最新版)
ide·vscode·编辑器
Forest_HAHA33 分钟前
<2>,Git分支管理
git
最贪吃的虎1 小时前
深入理解Git Commit的工作原理:从对象引用到空间优化
java·前端·git·后端·spring·开源
Forest_HAHA1 小时前
<3>,Git远程操作
git
wadesir1 小时前
Ubuntu系统下Cursor编辑器完全指南 (安装与配置详细教程)
linux·ubuntu·编辑器
CoderJia程序员甲4 小时前
GitHub 热榜项目 - 日榜(2026-1-3)
git·ai·开源·llm·github
CNRio9 小时前
Day 47:Git的高级技巧:使用Git的submodule管理子项目
git
山峰哥16 小时前
SQL调优实战指南:从索引设计到高并发场景优化全链路解析
大数据·汇编·数据库·sql·编辑器·区块链
CNRio16 小时前
Day 46:Git的高级技巧:使用Git的filter-branch重写历史
大数据·git·elasticsearch