On Tue, March 26, 2013 03:41, neolus wrote:
> I couldn't figure out a way to phrase my question but I'm not asking about
> replacing patterns or anything.
> I'd like to know if it's possible in vim to ( visually ) show any certain
> character as something else. e.g. while editing a text file any occurrence
> of the character '?' would just /look/ like '<>' but is still the
> character
> '?' and nothing is different except what you see. I'm asking because I
> figured this is impossible but maybe someone out there knows something I
> don't?
>
:h new-conceal
This however allows to visually display a portion of a text by a single
other char (not 2 as you asked about).
In your case, you can do:
syn match MyConcealedChar /?/ conceal cchar=Ąę
:set conceallevel=2 concealcursor=nv
See also
:h 'conceallevel'
:h 'concealcursor'
regards,
Christian
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment