vim 和 NERD 树扩展 - 添加文件 [英] vim and NERD Tree extension - adding a file

查看:28
本文介绍了vim 和 NERD 树扩展 - 添加文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当使用带有 NERDTree 插件的 vim 编辑器浏览项目树时,是否有一种简单的方法可以在当前突出显示的目录下创建一个新的源代码文件?

When using the vim editor with the NERDTree plugin to navigate through the tree of your project, is there an easy way to create a new source code file under the currently highlighted directory?

目前我进入我的 shell,添加文件,然后刷新树.一定有更好的方法.

Currently I go into my shell, add the file and then refresh the tree. There must be a better way.

推荐答案

激活 NERDTree 并导航到新文件所在的目录.然后按 m 调出 NERDTree 文件系统菜单并选择 a 作为添加子节点".然后只需输入文件(或目录名称)即可完成.

Activate the NERDTree and navigate to the directory in which the new file should live. Then press m to bring up the NERDTree Filesystem Menu and choose a for "add child node". Then simply enter the file's (or directory's name) and you're done.

这篇关于vim 和 NERD 树扩展 - 添加文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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