mercurial - 在命令行执行 Mercurial 提交时如何退出 Vim?

标签 mercurial terminal commit vi

我使用的是运行 OS X v10.6 (Snow Leopard) 的 Mac。我安装了 Mercurial 1.1。

按 Esc 退出插入模式后,我不知道如何保存和退出。按 Ctrl + C 向我显示了说输入“退出”将写入并退出的说明,但它似乎不起作用。

最佳答案

:q[uit]退出。
:w[rite]节省。
:wq是两者的捷径
:!command在 shell 中运行一个命令(你可以使用它来提交而不必离开 Vim)

关于mercurial - 在命令行执行 Mercurial 提交时如何退出 Vim?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3136648/

相关文章:

mercurial - 如何查看剩余的变更集以 checkin hg bisect?

macos - 如何修复终端在 OS X Lion 上不加载 ~/.bashrc

ios - el capitan 上的椰子

git - 如何还原多个 Git 提交?

mercurial - 拥有 .hgtags 的目的是什么

ssl - 使用 Apache 和 Windows 通过 HTTP 推送我的 Mercurial 存储库

svn - Subversion 是否具有类似于 "hg record"的功能/扩展?

linux - 用grep检查两个数组的确切顺序

git - 插入模式 Gcommit Fugitive

php - mysql表中的多次插入