General Computing
vim macvim indentation autoindent
Updated Mon, 12 Sep 2022 09:08:09 GMT

VIM - Auto-indent lines with over length

Is there an option in VIM to auto-intend (like in Espresso) lines which are too long to be displayed in the current window so that they get an automatic line break?

This is how it looks like in Espresso:

Espresso auto-indent


You want your wrapped lines to not go completely to the left but instead respect indentation, right?

I don't think there is a way to do that. Sorry.

Comments (2)

  • +0 – That's just what I meant. Is there really no way to enable a behavior like that in VIM? — Dec 04, 2011 at 13:42  
  • +1 – I'm using Vim fulltime since 1 year only. There are people around here with a lot more experience than me so don't consider my "no" as definitive. However I don't see anything in the docs that would help you do that. Beside actually formating your code in an old-school but sane way: 80 columns max. — Dec 04, 2011 at 20:10