I am editing a *.tex
file. I don't have persistent-undo set. However, I can normally undo beyond my last save so long as I don't exit the file. That's fine.
Sometimes, however, I am presented with the message "Already at oldest change". That's quite a downer. Why does this happen sometimes?
My Vim version is below. It includes persistent-undo, but it shouldn't matter in the context of this question.
VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Dec 12 2021 19:50:09)
Included patches: 1-3755
Modified by <[email protected]>
Compiled by <[email protected]>
Huge version with GTK3 GUI. Features included (+) or not (-):
<...snip...> +persistent_undo <...snip...>
undofile
) is going to be the state of the buffer at the time it was loaded. So if I dovim file
,ochange<esc>:write<cr>
, I can stillu
past that:write
(most recent save). But if I understand your question, you say sometimes this doesn't work? Maybe checkundolevels
. Also:help :undolist
and related commands/sections.undolevels
because it's only a few actions back in time. As forundolist
, I will try that the next time I see the problem (which is not frequent). At this instant, I've made far too many changes to the*.tex
file.:undolist
command didn't show much. Two unspecified changes a few minutes back. It doesn't matter whether I repeatCtrl+R
until I run out of redo's or repeatu
until I run out of undo's. Nothing visibly changes in the file when I do either of those, and:undolist
shows the same two changes in both cases.:verbose set undolevels?
(before and after it happens)? Isautoread
set?