-
Notifications
You must be signed in to change notification settings - Fork 523
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
when inputting o
in normal mode at a list item, unexpected indentation occurs.
#640
Comments
o
in normal mode, unexpected indentation occurs.o
in normal mode, at a line that is a list item, unexpected indentation occurs.
o
in normal mode, at a line that is a list item, unexpected indentation occurs.o
in normal mode at a list item, unexpected indentation occurs.
I temporaliy modified the code as follows:
I know this is not a nice way, but I don't understand its details. However, it's fixed. 😄 |
I'm not able to duplicate this problem. What version of VIM are you running and what other plugins do you have that might be affecting this? |
Here @alerque. macvim: VIM - Vi IMproved |
Hm. I'm on NeoVIM, so that's a major difference. Anybody else able to confirm this on VIM 9? VIM 8? Or other NeoVIM users that can confirm/deny? |
@poloxue I guessed that vim-markdown is incompatible with the code "filetype indent on", when I comment the code "filetype indent on" in the .vimrc, the problem solved |
@burninghg Of course if you disable all syntax-aware indentation the unexpected indentation will stop happening, but I don't think that's a resolution. This plugin should work with indentation features enabled even if it doesn't use them any/much. I'd consider this a bug and like to see it fixed, but I'm still at the point of not being able to replicate it. |
@alerque, I have this bug too. Neovim 0.9.4. No other plugins, almost empty config, my init.lua: require("lazy").setup({
{
"preservim/vim-markdown",
ft = "markdown",
dependencies = "godlygeek/tabular",
},
})
vim.o.keymap = "russian-jcukenwin" |
I had this behavior as well. I un-installed the vim-polyglot plug-in and this solved the problem. |
|
I encountered this bug again.
In normal mode, input
o
key on Markdown list, and then it will automatically add an indent.expected
but the reality is
After debugging for a while, I find the root cause was the code below:
When variable
name
ismkdListIterm
, it returns0
, that is wrong.The text was updated successfully, but these errors were encountered: