Indent with gqap

2 views
Skip to first unread message

Nathan Neff

unread,
Sep 7, 2020, 10:44:52 AM9/7/20
to vim-...@googlegroups.com
My head has exploded and I need some Vim Geeks first aid:

I'm editing Markdown with Vim and would like the gq command to format my lists correctly.
Simply put, when I have a list like the examples below, using `gqap` on those lists producers
a paragraph where either 1) the second line is indented correctly, but the remaining lines are not or
2) none of the lines are indented correctly
Examples of current behavior are below [1]


I've played around with blogs, etc - I wanted to know if anyone has found something
that works.  This is one of those things that's irritating, but I don't want to spend a couple of hours playing with plugins.

Thanks,
--Nate

Examples of list behavior:

- The contrary to popular belief, Lorem Ipsum is not simply random text.
  It has roots in a piece of classical Latin literature from 45 BC, making it
over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney
College in Virginia, looked up one of the more obscure Latin words,
consectetur, from a Lorem Ipsum passage, and going through the cites of the
word in classical literature, discovered the undoubtable source. Lorem Ipsum
comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The

- Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a
treatise on the theory of ethics, very popular during the Renaissance. The
first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in
section 1.10.32.


Reply all
Reply to author
Forward
0 new messages