‹ BackHN Continuity

Thread

On caring for user data: NeoVim caused Vim undo files to be deleted

384 points · 346 comments · jandeboevrie

  1. sdcfgy · · focus · HN ↗
    I've used vim since the first time it appeared in Debian repos. I have been told a thousand times that NeoVim is better, more modern and solves many (conveniently never cited) issues. I just ignored it and carried on. Feeling terribly vindicated at this point as it's a feature I use regularly and have no idea that it would be an issue in NeoVim.
    1. kps · · focus · HN ↗
      I've used vi and nvi and (now) vim, and tried neovim, but :! is broken and “Conform to POSIX vi” is one of their “Non-goals”.
      1. sodapopcan · · focus · HN ↗
        Nvim's `:!` behaviour was a deliberate design decision, which is one of the reasons I just stick with Vim9.
        1. Agentlien · · focus · HN ↗
          What's the issue? I use nvim and regularly use :! and haven't noticed an issue.
          1. sodapopcan · · focus · HN ↗
            It doesn't support interactive commands. For example if you run a command that asks for input before finishing, it gets swallowed.
          2. kps · · focus · HN ↗
            It does something using neovim's internal terminal mode rather than use the file descriptors it was called with. Most commonly this breaks when a command produces an interactive prompt or uses a pager.
      2. 0cf8612b2e1e · · focus · HN ↗
        POSIX vi is so barebones that nobody* wants that.

        Bare vi does not have windows, visual selection mode, multiple level undo, color schemes, etc.

        NVim wants to improve some defaults, which cannot be done if it is beholden to all legacy code. That being said, I still think this specific undo example is insane.

        1. anthk · · focus · HN ↗
          Nvi2 it's almost POSIX vi+iconv, thus, Unicode support. Good enough for me.
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.