To have proper paragraph wrapping with indentation in vim (after vim7.4) we could use this:
" Wrap the text with identation isntead of the old way
set breakindent
set showbreak=\ \\_
Since vim8 has introduced new features about break-indent I want to know if there would be a better practice?
p.s. the option name is the same and this "new vim 8.0 features" might not be that new!.
Edit (Provide an example for proper indentation):
here is a list in markdown and normal vim act like this:
* first item
* second item blah blah blah blah blah blah blah blah blah
blah blah blah blah blah blah blah blah blah blah blah blah blah
blah blah blah blah blah blah blah blah blah blah
* third time
and here is the proper way which is famously called "wrapping with indentation":
here is the base line:
* first item
* second item blah blah blah blah blah blah blah blah blah
blah blah blah blah blah blah blah blah blah blah blah blah
blah blah blah blah blah
* third time
set breakindent
andset showbreak=\ \\_
which works for all versions of vim and there is nothing specific about vim8! – SddS Dec 21 '16 at 5:08