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
Commented
Jan 13, 2017 at 10:06
conceal
option ::h conceal
.