3

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

ideasman42
  • 3,733
  • 3
  • 27
  • 34

1 Answers1

3

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
Rich
  • 31,891
  • 3
  • 72
  • 139