windows 如何在 NERDTree 中显示隐藏文件(以句点开头)?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5057359/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How can I show hidden files (starting with period) in NERDTree?
提问by James Fassett
How can I make NERDTreeshow files that begin with an .
(period)?
如何让NERDTree显示以.
(句点)开头的文件?
I have a file named .hgignore
in a project directory. If I browse to that directory using NERDTree, the file is not displayed within the tree.
我有一个.hgignore
在项目目录中命名的文件。如果我使用 NERDTree 浏览到该目录,则该文件不会显示在树中。
I am using gvim on Windows.
我在 Windows 上使用 gvim。
回答by James Fassett
Press I(Shift+i) to toggle hidden files in the NERDTree explorer window.
按I( Shift+ i) 在 NERDTree 资源管理器窗口中切换隐藏文件。
To enable this behavior by default, add this line to your .vimrc
file:
要默认启用此行为,请将此行添加到您的.vimrc
文件中:
let NERDTreeShowHidden=1
For more detail, access the NERDTree help file :help NERD_tree.txt
and search for "hidden".
有关更多详细信息,请访问 NERDTree 帮助文件:help NERD_tree.txt
并搜索“隐藏”。