On May 16, 10:35 am, Paul <[email protected]> wrote:
> On May 16, 10:30 am, Paul <[email protected]> wrote:
>
> > In the netrw plugin, I often sort by time (reversed) because I'm
> > looking at files that I've recently worked with. However, many of
> > the shown files are dot files (many being vim swap files). This
> > represents a cognitive load when I'm trying to breeze through many
> > files (with a slew of vim windows open, several being netrw plugins
> > windows).
>
> > Is there a way to hide the dot-files in the display by the netrw
> > plugin?
>
> And for that matter, is there a way to hide directories (temporarily
> that is)? That temporarily qualification also applies to my question
> about hiding dot-files.
Looks like the following browser option variables do the trick:
*g:netrw_liststyle*
Set the default listing style:
= 0: thin listing (one file per line)
= 1: long listing (one file per line with time
stamp information and file size)
= 2: wide listing (multiple files in columns)
= 3: tree style listing
*g:netrw_list_hide*
comma separated pattern list for hiding files
Patterns are regular expressions (see |regexp|)
Example: let g:netrw_list_hide= '.*\.swp$'
default: ""
This hid dot file & directories:
let g:netrw_list_hide= '.*\.swp$,.*/$'
However, these did not show the file details:
let g:netrw_liststyle=1
let g:netrw_liststyle= 1
Thanks if anyone can point out what might be wrong with my use of
g:netrw_liststyle.
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php