Wednesday, May 23, 2012

Re: netrw-plugin: Hide files with names starting with dot

Paul wrote:
> On May 21, 10:26 am, Charles Campbell<Charles.E.Campb...@nasa.gov>
> wrote:
>
>> <snip>
>> Try putting
>>
>> let g:netrw_list_hide =
>> '\(^\|\s\s\)\zs\.\S\+,\(^\|\s\s\)ntuser\.\S\+'
>>
>> in your .vimrc and see if that does what you want. (see :help
>> g:netrw_list_hide )
>>
> I already have:
>
> let g:netrw_list_hide= '.*\.swp\*,.*\.swp$,.*\.swp\s,.*/$,.*/\s'
>
> I'm not sure how the above hide expression helps with a variable
> tabstop that sticks with each folder. Can you elaborate on the
> thinking behind that?
>

Sorry -- that response got put into the wrong place. It was concerning
how to hide files beginning with "." while using the long liststyle.
> Note that I found that it's easy to get thrown off by the many places
> where vimrc can reside. In Windows, there's the location for all
> users, then there is the one in each user's home directory. Same with
> cygwin on the same PC (cygwin is a unix environment operating within
> the Windows environment). I can think that I've defined the proper
> g:netrw_... variable in all places, but after much mucking, find that
> I haven't.
>
>
Putting
let g:... = something

in the all-users vimrc should set it up for all users, and you should
not need to put it into user-specific directories.

On the other hand, if you as a specific user want to set up a global
variable for yourself as that user, then put it in
that user's user-specifiec vimrc.

Regards,
Chip Campbell

--
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

No comments: