Vim Plugins. Hasktags, Airline

Filed under: programming

Friday special post on plugins!


Install the hasktags package cabal install hasktags and then run this command in the project root to create a tag file.

hasktags -c `find . -name "*.hs"`

Proceed with running vim from the same directory to edit files. When you’d like to know where a function comes from, place your cursor on that function name and hit CTRL-] to jump to the definition. hit CTRL-t to jump back.

Vim Airline

Vim’s airline is a light-weight, pretty status bar. It can be customized both with its content and themes, plus it can integrated with some other status bar plugins.