On Tue, Oct 13, 2015 at 6:36 PM, Gary Johnson <[email protected]> wrote:
> When I open a directory containing symbolic links to other
> directories, those symbolic links appear among the regular files,
> not among the directories.  I think it would be better to group the
> symbolic links to directories with the regular directories.
>
> I didn't see a configuration variable for this.  I'm using Vim
> 7.4.865 and netrw v154h on Fedora 14.
>
> I started vim as follows to avoid my customizations.  I keep the
> netrw plugin files in a separate directory in my runtimepath,
> ~/.vim/netrw.
>
>     $ vim -N -u NONE --cmd 'let &rtp="~/.vim/netrw,".&rtp' --cmd 'runtime 
> plugin/netrwPlugin.vim' .
>
> Regards,
> Gary

In order to decide whether a given link is to a directory, an ordinary
file, or something else, it is necessary to resolve the link all the
way. The "ls" utility, when invoked with --indicator-style other than
=none (or with one of -p, -F, --classify or --file-type) adds a / to
directory names, but not to the names of symlinks to directories. So
in order to satisfy you, netrw would have to resole all symlinks (for
instance by invoking "ls -ld" for each of them separately) which would
increase the required processing and disk access time, perhaps beyond
reason depending on how many symlinks there are in the directory being
browsed, and on how many degrees of indirection each of them
represents.

I'm CCing Dr. Chip Campbell (the author of the netrw plugin) because
in everything concerning netrw enhancements, he of course has the last
word.


Best regards,
Tony.

-- 
-- 
You received this message from the "vim_dev" 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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui