SidOfc / mkdx

A vim plugin that adds some nice extra's for working with markdown documents
https://www.vim.org/scripts/script.php?script_id=5620
MIT License
482 stars 13 forks source link

Mapping list item not working #178

Closed avidseeker closed 2 years ago

avidseeker commented 2 years ago

OS type: Unix

Vim: Neovim

Neovim version: 0.8.0 vim -v: 9.0

Reproduce steps:

  1. Run nvim safe mode with mkdx installed
  2. type "- first item"
  3. type "1. first item"

Expected: Auto insert "-" and "2." for second item.

Actual: New line.

I checked this on vim, the dash worked, but "1." didn't. On neovim, both don't work.

avidseeker commented 2 years ago

Polyglot is disabled.

SidOfc commented 2 years ago

Hello there!

As long as mkdx is loaded properly (by putting it in a pack directory for example. :h packages), everything is working fine for me in Neovim. For me it did not work in Vim initially but I figured out I also needed filetype plugin on in my .vimrc for it to work.

If that line is already present, then I've got a few questions:

  1. How did you "install" mkdx?
  2. What is the command you used to "run vim in safe mode with mkdx installed"?
  3. What is the output of :script after you :edit some-test-file.md?
avidseeker commented 2 years ago

I discovered the problem is a conflict with pear-tree.

Problem is solved by disabling it.

SidOfc commented 2 years ago

Awesome, thank you for checking and confirming!