加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

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

发布时间:2020-12-15 16:32:11 所属栏目:安全 来源:网络整理
导读:参见英文答案 How do you return from ‘gf’ in Vim11个答案我可以使用gf去的名称下/光标后的文件,有没有任何命令回到原始文件,而不重新启动vim打开它? 尝试使用此快捷方式: CTRL-^ Vim文档:help CTRL- ^: 06001 和:帮助备用文件 If there already w
参见英文答案 > 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.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读