Hi,
On Wed, Aug 25, 2021 at 4:08 AM m1027 <[email protected]> wrote:
> vim already detects a leading dash as bullet in txt files and can reformat
> a bullet list nicely (visual selection + gq).
>
> But when actually *typing in* a long line, starting with a bullet (dash)
> and when the line break kicks in, the second row is indented as if there
> was no bullet.
>
> Desired behaviour: When the line break kicks in, the next line should
> (optionally) start a little more to the right, just like gq does on
> paragraphs with leading dahes.
>
>
> You can set the 'breakindentopt' and 'formatlistpat' options to indent
bulleted lists as described above:
set formatlistpat=^\\s*-\\s*
set breakindent
set breakindentopt=list:-1
The above assumes the bulleted lists start with a "-".
- Yegappan
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/CAAW7x7nKj6wZXE0mNZOQcJ48MFzrmo-BxaP9U5QgYAUCTZfqtA%40mail.gmail.com.