bulleted lists for plain-text documents in Vim

Posted by AnC on Super User See other posts from Super User or by AnC
Published on 2010-01-22T07:32:59Z Indexed on 2010/05/05 10:58 UTC
Read the original article Hit count: 279

Filed under:
|

While Vim supports automatic indenting in lists, the default setting only covers ordered lists, starting with digits:

1. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
   tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
2. veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
   commodo consequat.

I have not been able to figure out how to extend this to unordered, bulleted lists:

* Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
  tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
* veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
  commodo consequat.

Changing the formatlistpat RegEx did not lead to the desired results (indeed, it even broke ordered lists).

Any help would be appreciated!

© Super User or respective owner

Related posts about vim

Related posts about plaintext