Does VIM have a way to show symbols as characters?
So lambda can be displayed as λ (yet keep its underlying ascii text) for example.
Something like emacs pretty-symbols
Does VIM have a way to show symbols as characters?
So lambda can be displayed as λ (yet keep its underlying ascii text) for example.
Something like emacs pretty-symbols
You can do this with Vim syntax's conceal feature, which allows you to hide matched text or replace it with a single character:
:syntax match keyword "\<lambda\>" conceal cchar=λ
:set conceallevel=1
For more details, see:
:help conceal
:help conceallevel
:help concealcursor
lambda, eg: lambdafoobar turns into λfoobar
– ideasman42
Jan 13 '17 at 10:06
concealoption ::h conceal. – nobe4 Jan 13 '17 at 07:36