3 ms·
I like a lot the way Yi maps \ and -> to appropriate extended characters for display but leaves them in ASCII in the underlying file, but I didn't find it to be
by gaius 15y ago
I like a lot the way Yi maps \ and -> to appropriate extended characters for display but leaves them in ASCII in the underlying file, but I didn't find it to be stable enough for primetime yet.
- exDM69 15y agoIt's an absolutely useless feature but I love it too :) There's a Vim plugin called Haskell cuteness that does the same for Haskell code but unfortunately it didn't work very well.
- gwern 15y agoWe actually stole that Yi feature from Emacs ('pretty-lambda', I think it was called.)
- gaius 15y agoAh, cool, found it: http://www.emacswiki.org/emacs/PrettySymbolsForLanguages http://www.emacswiki.org/emacs/PrettySymbolsForLanguages
- radicality 15y agoIf you are using Vim >= 7.3, you can use the vim conceal feature which works as described, but without any messy hacks! For Haskell, here ( https://github.com/vim-scripts/Haskell-Conceal https://github.com/vim-scripts/Haskell-Conceal ) is a plugin that works quite well, although the lambda symbol does not seem to appear for me, and the resulting glyphs don't flow nicely with the rest of my font. It's still kind of nice!
- exDM69 15y agoThanks for the tip!