I just discovered Vim's conceal feature.
I've added the following to ~/.vim/after/syntax/haskell.vim
:
syntax match haskOperator "->" conceal cchar=→
syntax match haskOperator "<-" conceal cchar=←
highlight! link haskOperator Normal
And this to my vimrc:
setlocal conceallevel=2
This works and replaces ->
with →
and <-
with ←
:
That's nice but I feel that the replacement arrows are visually too prominent: I want to get rid of their highlighting, the grey background.
I tried to use transparent
, but this makes the arrows entirely invisible.