I'm trying to hide Python's __pycache__
directories in Vim's Netrw by setting:
:let g:netrw_list_hide = '^__pycache__$'
The value of this variable is supposed to be a regexp, yet the above pattern doesn't hide the __pycache__
directories. Setting it to the more simple:
:let g:netrw_list_hide = '__pycache__'
Does work, but then it over-matches to any path that contains this substring anywhere, so for example __pycache__foo
will be ignored too.
Any idea why the first matching pattern doesn't work?