On caring for user data: NeoVim caused Vim undo files to be deleted
Thread
Unofficial Hacker News client; not affiliated with Y Combinator.
On caring for user data: NeoVim caused Vim undo files to be deleted
Unofficial Hacker News client; not affiliated with Y Combinator.
justinmk · · focus · HN ↗
Go ahead, try it:
This is documented at `:help undo-persistence`.ofseed · · focus · HN ↗
For example, a common scenario is rolling back a file via git, which triggers this reset. However, considering they treated it as a reliable version control system without actually reading the documentation, they probably aren't using git anyway.
The good news for them, however, is that they actually can bypass this limitation and treat their undo history like version control—by using nvim-fundo [1]. The catch is that they'll have to switch to nvim, as there isn't a direct equivalent for vim.
1. [nvim-fundo](<a href="https://github.com/kevinhwang91/nvim-fundo" rel="nofollow">https://github.com/kevinhwang91/nvim-fundo)
endospore · · focus · HN ↗
pas · · focus · HN ↗
<a href="https://infosec.exchange/@david_chisnall/117172481079439378" rel="nofollow">https://infosec.exchange/@david_chisnall/117172481079439378
<a href="https://www.vim.org/scripts/script.php?script_id=5206" rel="nofollow">https://www.vim.org/scripts/script.php?script_id=5206