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

vim – 如何快速找到NERDTree中的活动文件

发布时间:2020-12-15 21:21:56 所属栏目:安全 来源:网络整理
导读:比如,我正在编辑一个名为application_controller.rb的文件,该文件位于?/ work / foo / app / controller /中. 现在我想打开NERDTree窗口,希望它能自动扩展文件夹?/ work / foo / app / controller /,并将光标定位在application_controller.rb文件中.怎么样?
比如,我正在编辑一个名为application_controller.rb的文件,该文件位于?/ work / foo / app / controller /中.

现在我想打开NERDTree窗口,希望它能自动扩展文件夹?/ work / foo / app / controller /,并将光标定位在application_controller.rb文件中.怎么样?

解决方法

:NERDTreeFind很可能是您正在寻找的:

Find the current file in the tree.

If not tree exists and the current file is under vim's CWD,then init a
tree at the CWD and reveal the file. Otherwise init a tree in the current
file's directory.

(编辑:李大同)

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

    推荐文章
      热点阅读