Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Lists Nesting by Default #25

bcrescimanno opened this Issue · 2 comments

2 participants


I'm not sure if this is expected behavior or if I may have a conflict with another plugin; when I hit while making a list in a markdown file, I'm treated as if I'm trying to continue the same bullet on a new line. However, when I insert another bullet, it remains tabbed.

Key sequence: i* some text<cr>* second bullet

Text output:

* some text
  * second bullet

This holds true for the key sequence: i* some text<esc>o* second bullet as well

You can see my vimrc file as well as a list of plugins as reference; though I did remove all plugins except vim-markdown and saw this same result. Note also that if I then == on the second line, it will correctly move to a left justified position.

If this is expected behavior, is there a trick to avoiding this auto-indentation?

@tpope tpope closed this in dcdab0c

It seems your value for 'formatoptions' is interacting rather unfortunately with my value for 'comments'. My solution? Strip r and o out of 'formatoptions' in markdown files.


Looks good to me; I didn't see your commit and tested it on my own to be sure and it works like a charm. Thanks for the quick response. :)

@ixandidu ixandidu referenced this issue from a commit in ixandidu/vim-markdown
@tpope Strip r and o out of format options
Closes #25.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.