How to get vim to format bulleted lists with correct indentation -


I can set text width option in VIM and then formatted to wrap new text. I can also use the "gq" command to wrap the text clearly, however, the behavior of bulleted lists is slightly unpredictable for me. Vim documents use bulleted lists with hyphens for bullets. When I try to do this, it starts fine:

  - This is a bulleted list item that is wrapped. I'm liking it.   

However, if I continue on a third line, it returns to indent:

  - This is a bulleted list item, on which The indentation is unexpected for lines after more than two lines have been wrapped.   

This happens with:

  formatoptions = tcq Comments = s1: / *, Mb: *, ex: * /,: //, b: To be clear, I would like the indent like this:  
  - -   This is a bulleted list item which is more than two Is wrapped went on Ainon. I want to first line each line to get the same indent, after looking forward, it seems that I just need to "set autodend".    

Get the expected behavior It works well to wrap the text That it has been typed and wrapped with "gq" command.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -