你如何从 Vim 中的 'gf' 返回 [英] How do you return from 'gf' in Vim

查看:37
本文介绍了你如何从 Vim 中的 'gf' 返回的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将 Vim 用于以 Unix 模式安装的 Windows.感谢这个网站,我现在使用 gf 命令转到光标下的文件.

I am using Vim for windows installed in Unix mode. Thanks to this site I now use the gf command to go to a file under the cursor.

我正在寻找以下任一命令:

I'm looking for a command to either:

  1. 返回上一个文件(类似到 Ctrl+T 用于 ctags),或
  2. 重新映射 gf自动启动新文件在新窗口中.
  1. return to the previous file (similar to Ctrl+T for ctags), or
  2. remap gf to automatically launch the new file in a new window.

推荐答案

我使用 Ctrl-O

这篇关于你如何从 Vim 中的 'gf' 返回的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆