1

I'm looking for a way to hide ./ from the Explore list in netrw. I was hoping to use a vim regex, but I can't land the proper one.

My current ignore list is:

let g:netrw_list_hide= '.*\.swp$,.DS_Store,*/tmp/*,*.so,*.swp,*.zip,*.git'

And according to :help netrw-gitignore:

Files that do not exist, are ignored. Git-ignore patterns are taken from existing files, and converted to patterns for hiding files. For example, if you had '*.log' in your '.gitignore' file, it would be converted to '.*\.log'.

But this doesn't translate to the specific path. How do I hide ./ in netrw?

Jair López
  • 650
  • 1
  • 5
  • 16
hhsnopek
  • 364
  • 3
  • 18

1 Answers1

4

I lifted this, ^\.\.\=/\=$, from Tim Pope's vinegar.vim

let g:netrw_list_hide= '.*\.swp$,.DS_Store,*/tmp/*,*.so,*.swp,*.zip,*.git,^\.\.\=/\=$'
Peter Rincker
  • 43,539
  • 9
  • 74
  • 101