Pregunta

When use :Ex to search files under a current project, I would like to search to skip certain directories. The netrm document says that "g:netrm_list_hide" option can be used to achieve this, but my experiments with the options shows it only applies to the filename but not the directory name.

The google search also yields no solution to this. Does anyone know a workaround?

¿Fue útil?

Solución

Taken from http://vim.1045645.n5.nabble.com/Hiding-Subversion-directories-within-netrw-td1167827.html

To hide directory names just add a trailing slash when you list them. For example to hide the directory .git/ use the following.

let g:netrw_list_hide='^\.git/$'
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top