Hello,
I am trying to hide the build directory in NERDTree. But unfortunately I haven't succeeded.
Here is the option I have used:
let NERDTreeIgnore = ['\build$']
: version: NVIM v0.2.3-785-gb22d3385bvim-plug)Thank you very much in advance.
You should have used.
let g:NERDTreeIgnore = ['^build$']
Thank you very much for your precious help.
Problem solved.
The strings in that list are regular expressions, so the \ is tyring to escape the b that follows it. The \ is not a path separator. Your regular expression should look like this: ^build$ This will ignore all files and folders named build, but it won't hide ones like building. Additionally, you can use a special NERDTree flag to hide only folders:
let NERDTreeIgnore = ['^build$[[dir]]']
@BigfootN You're welcome, always.
@PhilRunninger Thank you very much for the additional information.
Most helpful comment
You should have used.