提问人:Lowsky 提问时间:11/11/2023 最后编辑:John KugelmanLowsky 更新时间:11/11/2023 访问量:53
如何让VIM在将焦点改为:terminal时自动保存文件?
How to make VIM automatically save the file when changing focus to :terminal?
问:
我刚开始学习 VIM。我想知道是否有任何方法可以使 VIM 像 VScode save “onFocusChange” 一样工作。我可以在 .vimrc 文件中做些什么吗?在 C/C++ 中工作时,我使用 :terminal 来编译程序(使用 ctrl+w w 不断更改代码和终端之间的焦点),但有时我只是忘记保存文件。让 VIM 这样做会容易得多。
答: 暂无答案
评论
sidefect
:write
CTRL+W
:make
:terminal