# What is the best practice in vim8 for wrapping with indentation aka breakindent

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
``````
• "proper paragraph wrapping" only means something in your head. Describe what you want to achieve if you want meaningful help. Sep 22, 2016 at 7:26
• Have you eventually figured it out? I'm still looking for it and Googling about it every week. Dec 20, 2016 at 17:28
• I'm currently use `set breakindent` and `set showbreak=\ \\_` which works for all versions of vim and there is nothing specific about vim8!
– SddS
Dec 21, 2016 at 5:08

Starting from vim 8.2.3198 there is `set briopt+=list:-1` that does what you want. It relies on `formatlistpat` to detect proper list indentation: