Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Autoindenting Haskell in Vim

Tags:

vim

haskell

I started playing with Haskell and I use Vim. I have autoindent on in my vimrc, but it seems to not be aware of haskell somehow. I would like to autoindent work in some cases where it doesn't (for example, after = and newline).

How can I customize autoindentation rules in vim? (I googled it, but every site suggested turning autoindent on, which I already had).

Thank you

like image 267
Tamás Szelei Avatar asked Sep 04 '09 11:09

Tamás Szelei


2 Answers

What did you search for? This page is the first result when you search "vim autoindent haskell" in google.

like image 108
erelender Avatar answered Nov 19 '22 03:11

erelender


Try using the Haskell mode for Vim.

like image 20
Don Stewart Avatar answered Nov 19 '22 03:11

Don Stewart