Integrates with hindent so every time you save a Haskell source file it gets automatically prettified.
Simply using :%!hindent
replaces your whole source file with an error message
from hindent when you happen to have a syntax error in your code, this
plugin manages that annoyance.
Compatible with Vundle
, Pathogen
, Vim-plug
.
By default, vim-hindent will format your code automatically when saving a
Haskell source file, but you can use the :Hindent
command at any time to
format the current file.
Trigger hindent when saving (default = 1):
g:hindent_on_save = 1
Number of spaces per indentation (default = 2):
g:hindent_indent_size = 2
Max line length (default = 100):
g:hindent_line_length = 100