On May 16, 11:03 am, Paul <[email protected]> wrote: > > 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.
I found that let g:netrw_list_hide= '.*\.swp$,.*/$' doesn't work for long file listings because the filename is followed by other information. Since the filename is immediately followed by white space, I tried: let g:netrw_list_hide= '.*\.swp\_$,.*/\_$' However, \_$ doesn't seem to get recognized, so I finally ended up with: let g:netrw_list_hide= '.*\.swp$,.*\.swp\s,.*/$,.*/\s' Also, the "a" key cycles through whether to show files conforming to g:netrw_list_hide. As well, the "i" key maps to the different list styles. Fortunately, the settings seem to be remembered between successive openings of a directory by netrw. One thing I found not to be remembered is "setl ts=14" (or whatever number you use to get the file timestamp column closer to the filename column). Is there a way to have this setting stick? -- 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
