4 ms·
Similarly, I have unlimited persistent per-file undo turned on in Neovim. I can open any file I've edited previously and walk through the full history of how it
by mintplant 2y ago
Similarly, I have unlimited persistent per-file undo turned on in Neovim. I can open any file I've edited previously and walk through the full history of how it got there. With Undotree [0], I can even navigate branching paths in development. I don't know how people live without this.
[0] https://github.com/mbbill/undotree https://github.com/mbbill/undotree
- rustyminnow 2y agoWhat are your undo settings? I set undofile and undodir, but not sure if it's unlimited. One issue I have is if nvim is closed and the file is touched by some outside process (say git pull) it clobbers the history. Do you know if there's a fix to that?
- koonix 2y agoOh yes there is: https://github.com/kevinhwang91/nvim-fundo https://github.com/kevinhwang91/nvim-fundo
- mintplant 2y agore: undo settings, I set my `undolevels` [0] to a very high number to make it unlimited for all intents and purposes. [0] https://vimdoc.sourceforge.net/htmldoc/options.html#'undolevels' https://vimdoc.sourceforge.net/htmldoc/options.html#'undolev...