-
Notifications
You must be signed in to change notification settings - Fork 620
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unordered lists in Markdown don't respect hard line wraps #1364
Labels
lists
Stuff about list syntax, list markers, etc.
Comments
I cannot reproduce, it is all good to me verbose set formatlistpat
formatlistpat=^\s*\%(\(\*\|-\|+\)\|\(\C\%(\d\+\.\)\)\)\s\+\%(\[\([ .oOX-]\)\]\s\)\?
Last set from ~/.vim/plugged/vimwiki/ftplugin/vimwiki.vim line 169
verbose set autoindent?
autoindent
Last set from ~/.vim/plugged/vimwiki/ftplugin/vimwiki.vim line 134
verbose set formatoptions
formatoptions=tqclnj
Last set from ~/.vim/plugged/vimwiki/ftplugin/vimwiki.vim line 172
``` |
Please give the output of verbose set formatlistpat
verbose set autoindent?
verbose set formatoptions |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The behavior between ordered and unordered lists in Markdown when using hard line wraps at 80 characters is inconsistent (that is, using
set textwidth=80
). I believe the behavior for numbered lists is desired, and the behavior for unordered lists should be changed to match. The current behavior is as follows (the attached screenshot is the easiest way to understand the difference).When using ordered lists:
<CR>
at the end of a line advances to the next line, inserting the next number in the list.<S-CR>
at the end of the list item advances to the next line, inserting the next number in the list.<CR>
advances to the next line, does not add a new number, and keeps the 2-character text justification. This repeats for any number of times you press<CR>
.<CR>
you enter some text and then press<S-CR>
, it behaves exactly as described above.When using unordered lists (regardless of '-', '*', or '+'):
<CR>
at the end of a line advances to the next line, inserting a new bullet of the same style as in the previous line.<CR>
and<S-CR>
both advance to the next line but do not insert a new bullet.<S-CR>
behaves as it does in the case of ordered lists.In effect, it seems that ordered lists remember that they are in list context when hard wrapping, but unordered lists do not.
Prior to submitting a new issue make sure to complete these steps:
.vimrc
:VimwikiShowVersion
.The text was updated successfully, but these errors were encountered: