You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support for conceal string - cstr in addition to cchar #4687
I have a list of feature requests and this is one of them. thank you.
In my Vim user group we also discussed recently why conceal is limited to single characters.
cstr seems to make sense. I'm very interested to hear what @brammool thinks about it.
I have a list of feature requests and this is one of them. thank you.
In my Vim user group we also discussed recently why conceal is limited to single characters.
cstr seems to make sense. I'm very interested to hear what @brammool thinks about it.
There is no other reason than that it's a bit of work to implement.
At the time there didn't seem to be much use for adding more complicated
code, a single character should cover most use cases.
Here's another use case. When spaces are used instead of tabs, I don't find a way of displaying tabs as "| " for example if tabs are 2 spaces, to better see alignment (especially in xml files).
I could ask around and collect useful use cases to see if it is worth the effort someday in the future.
Forgive me if this is a stupid suggestion. I may have a use case for this feature, but I can not oversee if this features makes it possible. I would like to create a character based image previewer for markdown. E.g. using dotmatrix. It should conceal a markdown image link and show a dynamically created and cached image representation.
Here's another use case. When spaces are used instead of tabs, I don't find a way of displaying tabs as "| " for example if tabs are 2 spaces, to better see alignment (especially in xml files).
@brammool I have the feeling cstr is the next big thing that many users seem to need and are waiting for. I saw quite some users work around this "missing" feature but never really successful, and the solutions are more dirty than good. I tried it myself and gave up. The best thing would be to get cstr.
Activity
marcotrosi commentedon Jul 20, 2019
I have a list of feature requests and this is one of them. thank you.
In my Vim user group we also discussed recently why conceal is limited to single characters.
cstr seems to make sense. I'm very interested to hear what @brammool thinks about it.
brammool commentedon Jul 20, 2019
marcotrosi commentedon Jul 20, 2019
Thanks @brammool for the insight.
I could ask around and collect useful use cases to see if it is worth the effort someday in the future.
ybearzi commentedon Aug 7, 2019
Here's another use case. When spaces are used instead of tabs, I don't find a way of displaying tabs as "| " for example if tabs are 2 spaces, to better see alignment (especially in xml files).
keshavchand commentedon Sep 7, 2019
It would be better if cstr could include regex such as:
mipmip commentedon Sep 9, 2019
Forgive me if this is a stupid suggestion. I may have a use case for this feature, but I can not oversee if this features makes it possible. I would like to create a character based image previewer for markdown. E.g. using dotmatrix. It should conceal a markdown image link and show a dynamically created and cached image representation.
marcotrosi commentedon Sep 9, 2019
I don't know why, and it's not a feature request or so, but my brain is now always thinking "SIXEL graphics support in Vim"
https://en.wikipedia.org/wiki/Sixel
mipmip commentedon Sep 9, 2019
I would love this, but it seems far away.
fritzophrenic commentedon Sep 19, 2019
@ybearzi:
You don't need conceal for this. Take a look at:
:help 'list'
:help 'listchars'
BertrandSim commentedon May 21, 2021
Here's another use case: concealing
\frac{a}{b}to{a}/{b}If
cstrsupports back-referencing, one could do something likeIdea from this post
marcotrosi commentedon May 21, 2021
@brammool I have the feeling cstr is the next big thing that many users seem to need and are waiting for. I saw quite some users work around this "missing" feature but never really successful, and the solutions are more dirty than good. I tried it myself and gave up. The best thing would be to get cstr.