gabrielelana / vim-markdown

Markdown for Vim: a complete environment to create Markdown files with a syntax highlight that doesn't suck!
MIT License
740 stars 59 forks source link

Use `imap` rather than `inoremap` at least for `<tab>` and `<cr>` #98

Open RedBeard0531 opened 3 years ago

RedBeard0531 commented 3 years ago

Using inoremap breaks normal workflow for anyone who has <tab> mapped in insert mode, which is pretty common for completion. It took me a while to figure out why it was broken. I think you should probably do it for any of the mappings (in any mode) that are conditional and fall back to emitting the base character if the condition isn't met.

sebastianmarines commented 3 years ago

For anyone else having the same problem, the author of issue #69 provides a workaround.