I’ve started getting into Haskell recently, and, coincidentally, I’ve also gotten back into Vim. In the process, I’ve been pleased to discover some surprisingly excellent Haskell plugins for Vim.
- vim2hs provides syntax highlighting and various other core language support niceties (including formatting \ as λ)
- neco-ghc gives you smart context-aware autocompletion
- ghcmod.vim lets you quickly look up the type of an expression
And not Haskell-related, but also pretty spiffy, and good for use with the above:
- neocomplcache makes Vim autocomplete stuff automatically all over the damned place
- pathogen makes it ridiculously easy to manage different vim plugins
Of the many features offered by modern IDEs, I’ve always seen one that can make them better to use than mere text editors: a deep, built-in awareness of language syntax. With these plugins, I feel like Vim has that. It knows Haskell, and will help me write and understand it. I’m hooked.