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
Fixed indent alfter list #3
Conversation
Thanks, that's fine with me. |
Thanks. By the way, how about this? Fixed indent of list by hori-ryota · Pull Request #218 · plasticboy/vim-markdown |
For numbering bullets, I agree. For indent function, maybe we can make it much simpler, like: " Only define the function once
if exists("*GetMkdIndent") | finish | endif
function GetMkdIndent()
let lnum = prevnonblank(v:lnum - 1)
if lnum == 0 || v:lnum - lnum > 2
return 0
endif
return indent(lnum)
endfunction I think it works as same as your modification, doesn't it? In addition, I prefer to do: if lnum == 0 || v:lnum - lnum > 1 For syntax, it is better to do: setlocal comments+=bn:> Ho do you think? |
Thanks.
e.g.
is
But this method incomplete in terms of ignoring line feeds.
|
ok, I got what you want. (sorry, I didn't think the third condition is actually intended...) I think it is better to have current your pull request's one,
With original one, In case you don't have But the behavior such
is a bit annoying if you actually finish the item (and it happens much more than the cases with paragraphs.) By the way, I found the typo in line 54 of your pull request ( |
Thanks, I updated. I also think so the behavior, but using numbering bullet indented when new line added. e.g.
If that's the case, I think better also behave not indented. |
How about this?
in syntax/markdown.vim. It works for:
Though it is more complex if you want to increment here, |
No description provided.