To show the string instead of the concealed text fragment, without various additional hacks. So, for example in addition to
syntax keyword int int conceal cchar=ℤ
you would be able to write something like this:
syntax keyword int int conceal cstr='ℤ64'
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.![]()
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.
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.
Here's a use case I've run up against: when editing Mathematica code, I would like to conceal things like \[FormalQ] to q̣ (as in the Mathematica front-end), but cchar does not seem to support combining characters.
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).
It would be better if cstr could include regex such as:
syntax keyword int 'i(\d)' conceal cstr='\vℤ$1'
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.
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
I would love this, but it seems far away.
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).
You don't need conceal for this. Take a look at:
:help 'list'
:help 'listchars'
Here's another use case: concealing \frac{a}{b} to {a}/{b}
If cstr supports back-referencing, one could do something like
syn match '\\frac{\([^}]*\)}{\([^}]*\)}' conceal cstr='{\1}/{\2}'
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.![]()
@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.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.![]()