Marked files are not visible in netrw

260 views
Skip to first unread message

Ivan Kanis

unread,
Mar 16, 2014, 11:27:51 AM3/16/14
to Vim Usage
Hi,

I use vim 7.4 compiled with features huge in xterm.

I have set my configuration file like so:

syntax on
set nocompatible


When I open a directory, position my cursor on a file and type mf, I
don't get any visual feedback that the file is marked. Is that normal?

Ivan

--
Absent in body, but present in spirit.
-- I Corinthians ch. 5, v. 3

I am listening to "U2 - Beautiful Day".

Charles E Campbell

unread,
Mar 16, 2014, 5:13:25 PM3/16/14
to vim...@googlegroups.com
Ivan Kanis wrote:
> Hi,
>
> I use vim 7.4 compiled with features huge in xterm.
>
> I have set my configuration file like so:
>
> syntax on
> set nocompatible
>
>
> When I open a directory, position my cursor on a file and type mf, I
> don't get any visual feedback that the file is marked. Is that normal?
>
> Ivan
>
I first wondered if the odd order was a problem (ie. turning a
non-compatible feature like syntax on, then turning nocompatible on),
but that wasn't it.
With the following file: vimrc.ivan

syntax on
set nocp

and trying
vim -u vimrc.ivan .
and
gvim -u vimrc.ivan -U NONE .

and then marking a file, I saw it go bold. So,

* doing the above, does marking a file go bold?
* if not, and you're using vim, does the terminal you're using support
bold?

In a related vein, perhaps you could try some colorscheme (colors
whatever-color-scheme-you-choose) and see if marking a file with it
shows up.
Marked file highlighting is done with the highlighting group
netrwMarkFile, which in turn is linked to TabLineSel.

Regards,
Chip Campbell

Dan Lowe

unread,
Mar 16, 2014, 2:59:45 PM3/16/14
to vim...@googlegroups.com

On Mar 16, 2014, at 11:27 AM, Ivan Kanis <iv...@kanis.fr> wrote:

> I use vim 7.4 compiled with features huge in xterm.
>
> I have set my configuration file like so:
>
> syntax on
> set nocompatible
>
> When I open a directory, position my cursor on a file and type mf, I
> don't get any visual feedback that the file is marked. Is that normal?

The selected lines should be highlighted (probably by being set bold/bright). If you are not seeing a change, it may be your colorscheme, terminal color settings, or a combination of both affecting this. For example, using my terminal with the Solarized Light theme, directory entries look the same on selection, while file entries turn blue (from gray).

There's no indicator other than the color change as far as I know.

Dan


Ivan Kanis

unread,
Mar 17, 2014, 9:30:28 AM3/17/14
to Charles E Campbell, vim...@googlegroups.com
March, 16 at 17:13 Charles E Campbell wrote:

>> When I open a directory, position my cursor on a file and type mf, I
>> don't get any visual feedback that the file is marked. Is that normal?
>>
>
> * doing the above, does marking a file go bold?
> * if not, and you're using vim, does the terminal you're using
> support bold?

Hi Charles,

You pointed me to the right direction. I turned off bold in my xterm. I
made a blog of my fix.

http://ivan.kanis.fr/messing-with-xterm.html

Ivan
--
When you can do the common things in life in an uncommon
way, you will command the attention of the world.
-- George Washington Carver

I am listening to "The Jimi Hendrix Experience - Bold As Love".
Reply all
Reply to author
Forward
0 new messages