Asterisks enclosing text disappear when cursor leaves the line

16 views
Skip to first unread message

Eric Weir

unread,
Sep 25, 2012, 5:49:41 PM9/25/12
to vim_use

I have been using pairs of asterisks enclosing text to indicate emphasis. I just noticed that when I move the cursor from the line in which asterisks are used in this way they disappear.

Not a serious problem, but I don't recall this happening before---I may just not have noticed---and I would prefer that the asterisks display. 

Why does it happen? Can i prevent it.

Thanks,
------------------------------------------------------------------------------------------
Eric Weir
Decatur, GA

"A man should be in the world as though he were not in it 
so that it will be no worse because of his life." 

- Wendell Berry 

Ben Fritz

unread,
Sep 25, 2012, 6:10:44 PM9/25/12
to vim...@googlegroups.com
On Tuesday, September 25, 2012 4:49:51 PM UTC-5, Eric Weir wrote:
> I have been using pairs of asterisks enclosing text to indicate emphasis. I just noticed that when I move the cursor from the line in which asterisks are used in this way they disappear.
>
>
> Not a serious problem, but I don't recall this happening before---I may just not have noticed---and I would prefer that the asterisks display. 
>
>
> Why does it happen? Can i prevent it.
>

It's probably Vim's "conceal" feature. What is the syntax/filetype of the file you are editing? Conceal is based on syntax highlighting.

You can set the 'conceallevel' option appropriately to prevent the hiding, but syntaxes which use the conceal feature probably do so for a reason.

Eric Weir

unread,
Sep 25, 2012, 7:30:44 PM9/25/12
to vim...@googlegroups.com

On Sep 25, 2012, at 6:10 PM, Ben Fritz wrote:

> It's probably Vim's "conceal" feature. What is the syntax/filetype of the file you are editing? Conceal is based on syntax highlighting.
>
> You can set the 'conceallevel' option appropriately to prevent the hiding, but syntaxes which use the conceal feature probably do so for a reason.

Thanks, Ben. This is happening in VimWiki. I've written to the user list to see if VimWiki sets the conceal feature.

------------------------------------------------------------------------------------------
Eric Weir
Decatur, GA
eew...@bellsouth.net

"What is man without the beasts? If all the beasts were gone,
men would die from a great loneliness of spirit."

- Chief Seattle






Reply all
Reply to author
Forward
0 new messages