netrw plugin: asterisk after filename

405 views
Skip to first unread message

Sylvia Ganush

unread,
Apr 30, 2013, 11:43:27 AM4/30/13
to vim...@googlegroups.com
Hi.

A quick question, probably with an obvious answer, but I couldn't
find one either in the manual or on the Internet.

In directory listing view the netrw plugin appends an asterisk to
filenames. What does it mean?

Best,

Sylvia

Charles Campbell

unread,
Apr 30, 2013, 11:56:42 AM4/30/13
to vim...@googlegroups.com
There are several such appendages...

see :help netrw-getftype

Regards,
C Campbell

Sylvia Ganush

unread,
Apr 30, 2013, 12:08:45 PM4/30/13
to vim...@googlegroups.com
Merci, Charles.

Hmm... * = executable? What's executable about foobar.pdf* or foobar.txt*? I can't understand.

Sylvia

Taylor Hedberg

unread,
Apr 30, 2013, 12:18:00 PM4/30/13
to vim...@googlegroups.com
Sylvia Ganush, Tue 2013-04-30 @ 18:08:45+0200:
> Hmm... * = executable? What's executable about foobar.pdf* or
> foobar.txt*? I can't understand.

Those files must have the "executable" bit set in your file system, and
netrw is just picking up on that.

As for why the executable bit is set on non-executable files, ask
whatever program stored those files in the first place.
signature.asc

Charles Campbell

unread,
Apr 30, 2013, 12:22:49 PM4/30/13
to vim...@googlegroups.com
Additionally, if Sylvia is using Windows and NTFS -- her file(s) may
have ACLs set which (incorrectly) are flagging the file(s) as
executable. There's a way to edit the acl for files; I'm not a Windows
guru, so I'd have to hunt around for how to do it. I've done it before,
though, and haven't found my notes about it yet.

Regards,
C Campbell

Sylvia Ganush

unread,
Apr 30, 2013, 2:15:20 PM4/30/13
to vim...@googlegroups.com

On 30 Apr 2013, at 18:22, Charles Campbell <Charles.E...@nasa.gov> wrote:

> Additionally, if Sylvia is using Windows and NTFS -- her file(s) may have ACLs set which (incorrectly) are flagging the file(s) as executable. There's a way to edit the acl for files; I'm not a Windows guru, so I'd have to hunt around for how to do it. I've done it before, though, and haven't found my notes about it yet.

Thank you, gentlemen, for pointing me in the right direction.

It would appear that Mac OS X sets executable bits to all files
when I plug in my FAT32-formatted USB stick. Must be an OS issue,
nothing Vim or netrw related.

Sylvia

Taylor Hedberg

unread,
Apr 30, 2013, 2:39:12 PM4/30/13
to vim...@googlegroups.com
Sylvia Ganush, Tue 2013-04-30 @ 20:15:20+0200:
> It would appear that Mac OS X sets executable bits to all files when I
> plug in my FAT32-formatted USB stick. Must be an OS issue, nothing Vim
> or netrw related.

I don't think FAT32 supports file mode bits at all (or, at least not the
"standard" Unix ones). So it's likely not a flaw in OS X, but simply a
limitation of the file system.
signature.asc
Reply all
Reply to author
Forward
0 new messages