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
484 stars 13 forks source link

"o" insert newline deletes current line, on indented '# statement' #172

Closed wiwo192 closed 2 years ago

wiwo192 commented 2 years ago

Hello there, thanks for reporting an issue or requesting a feature! If you want to add a feature, you won't need this template. Just provide a clear description of what you want and include an example of how this works in practice.

If you're opening a bug report,this template will help you fill out all the needed information, simply replace the [TEMPLATE] data with actual information, fill out the checkboxes and include any information you find useful and you're good to go! When you're done, don't forget to re-read and remove dummy texts like this paragraph.

OS type:

Vim:

Vim version:

VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Sep 24 2021 14:13:29) macOS version - arm64 Included patches: 1-3455 Compiled by GitHub Actions

Reproduce steps:

Example:

  1. Open a markdown file.
  2. Paste the following example into the file:

    Indented line, with pound prefix

  3. Then, attempt to do [ACTION] in [MODE]. In normal mode, on that line, hit "o"

Expected:

Same behavior in vim. Insert new line, and go into insert mode in the newline

Actual:

The indented line got deleted, and go into insert mode of the same line. Kapture 2022-06-13 at 16 09 49

SidOfc commented 2 years ago

Hello @wiwo192,

Cheers for reporting an issue, I have two more questions:

If I understand correctly in your case a header disappears when pressing "o". I was unable to reproduce this myself, but I'm not entirely sure if that's all there is to it 😅

SidOfc commented 2 years ago

Since this issue hasn't received any activity I'm going to close it. Feel free to comment once you find the time.