First of all. This is not another “how do I exit vim?” shitpost.

I’ve been using (neo)vim for about two years and I started to notice, that I,m basically unable to use non-vim editors. I do not code a lot, but I write a lot of markown. I’d like to use dedicated tools for this, but their vim emulators are so bad. So I’m now stuck with my customized neovim, devoid of any hope of abandoning this strange addiction.

Any help or advice?

  • theshatterstone54
    link
    fedilink
    arrow-up
    16
    arrow-down
    1
    ·
    edit-2
    3 months ago

    No joke, Emacs has the ability to render in line markdown, essentially the current line is just text, while the rest of the doc is rendered as markdown titles, links, lists, etc. It’s my favourite way of editing markdown but I’ve never found another editor that does markdown like that. Everything else has text and rendered markdown side by side as separate panes, which I personally hate.

    Edit: I stand corrected. Neovim has it too: https://github.com/MeanderingProgrammer/render-markdown.nvim

    • rien333@lemmy.ml
      link
      fedilink
      arrow-up
      2
      arrow-down
      1
      ·
      3 months ago

      No joke, Emacs has the ability to render in line markdown, essentially the current line is just text, while the rest of the doc is rendered as markdown titles, links, lists, etc.

      This sounds amazing. I’ve been using markdown-mode for ages now though, and I’ve never come across this feature.

      How do you enable this?

      • theshatterstone54
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        3 months ago

        I have it in my config, will link to a specific commit in case anything changes. Look for the heading called MARKDOWN and I’d recommend grabbing all 3 subsections (MARKDOWN, Markdown Headings, Markdown Concealing). The main part is the last one iirc. Link: https://gitlab.com/theshatterstone/dotfiles/-/blob/6f00007eac475946e11fa3278ffbf526400b7e10/.config/emacs/config.org

        Edit: Links from the Table of Contents don’t work in Gitlab, unfortunately, so you’ll have to scroll to it yourself.

      • rien333@lemmy.ml
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        3 months ago

        Some people over at reddit seem to suggest that the functionally you speak of doesn’t exist, except in the form of a proof of concept snippet over at SO.

        EDIT: Said snippet would probably be sufficient, if it handled codeblocks correctly (stuff in between ```). At the moment, it handles them miserably (maybe because they are multineline elements?)