0

In Notepad++ there is a linewrap option that can be set to aligned so that indented, wrapped lines align at the same left margin. See also here: How can I indent the wrapped text in Notepad++?.

Is there a setting to get the same behaviour in VIM?

Rabarberski
  • 8,492
  • 27
  • 71
  • 87
  • 3
    This might help: http://stackoverflow.com/questions/2828174/word-wrap-in-vim-preserving-indentation – EBGreen Nov 02 '12 at 18:49

1 Answers1

0

This line indents wrapped content by 4 spaces:

set showbreak=\ \ \ \ <- there's a <Space> here

See :help 'showbreak'.

The breakindent patch in EBGreen's comment is smarter.

romainl
  • 22,554
  • 2
  • 49
  • 59