To get vim to auto indent new lines, ensure you are out of insert mode (by pressing the Esc key) and entering:

:set ai

Hope this helps.

Trackback

no comment untill now

Add your comment now