如何回到上一个打开的文件在Vim?

前端之家收集整理的这篇文章主要介绍了如何回到上一个打开的文件在Vim?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
参见英文答案 > How do you return from ‘gf’ in Vim11个答案我可以使用gf去的名称下/光标后的文件,有没有任何命令回到原始文件,而不重新启动vim打开它?
尝试使用此快捷方式:
CTRL-^

Vim文档:help CTRL- ^:

06001

和:帮助备用文件

If there already was a current file name,then that one becomes the alternate file name. It can be used with “#” on the command line |:_#| and you can use the |CTRL-^| command to toggle between the current and the alternate file. However,the alternate file name is not changed when |:keepalt| is used. An alternate file name is remembered for each window.

猜你在找的Bash相关文章