Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vim - NERDTree - how to open a hidden folder (.name) in NERDTree plugin?

Tags:

vim

nerdtree

I have a hidden folder which name starts with . (dot) I am editing files withing the parent folder but want to be able to access files within the hidden one as well from within NERDTree plugin under vim.

Is there a way to do it?

like image 397
Blaise Avatar asked Nov 29 '12 14:11

Blaise


People also ask

How do I show hidden files on NERDTree?

Press I ( Shift + i ) to toggle hidden files in the NERDTree explorer window. For more detail, access the NERDTree help file :help NERD_tree. txt and search for "hidden". And to hide hidden files by default, put let NERDTreeShowHidden=0 into your vimrc.

How do I open a NERDTree file?

If you want to use NERDTree, you can open NERDTree (type :NERDTree ), navigate to your file, and then press t with cursor on the file name. This will open specific file in new tab.


2 Answers

If you hit SHIFTi, the NERDTree shows also hidden files.

This could be found in the docs of NERDTree that appear if you hit ? in the NERDTree window or type :he NERDTree (specific: :he NERDTreeMappings).

like image 52
eckes Avatar answered Sep 22 '22 18:09

eckes


To shows hidden files/folders by default, add this line to your .vimrc file:

let NERDTreeShowHidden=1 

Hit SHIFTi to toggle between show and hide hidden files/folders.

If you ignore file/folder(like .git/ , .DS_Store/ etc) in NerdTree, add this line to your vim script:

let NERDTreeIgnore=['\.DS_Store$', '\.git$'] " ignore files in nerd tree 
like image 38
finn Avatar answered Sep 20 '22 18:09

finn