On 2024-10-24 14:06, BPJ wrote:
>> Other possibilities:
>> - you should be able to use a count with undo like
>>   15u
>>   and it doesn't complain about you requesting more undo than exists, so
>>   you can do ridiculous counts like
>>   99999u
>>   to undo lots of changes
> 
> Very good to know as I have been worrying about not knowing how many
> changes I need to undo.

There's an internal limit that you can tweak:

  :help 'undolevels'

so you can adjust that up/down as you see fit.  You just have to do it
before you make that many changes (so a good candidate for your vimrc)

>> - you can use :earlier and :later to navigate based the undo tree based
>>   on time rather than undo counts, so you can do things like
>>   :earlier 15m
>>   :earlier 2h
>>   :earlier 1f
> 
> Didn't know about these!

I don't use them often because my internal/mental clock doesn't sync up
with my editing, but if they help you out, they're good to have in your
tool-belt.

>> (and in typing that up, I learned about the "f" suffix for
>> file-write-counts...nice!)
> 
> Very nice and very useful, especially if `:w` doesn't have the same side
> effects as :e mentioned above!

Correct, the :e reloads the buffer (similar to passing a range through
an external filter with `:help :range!` which impacts that range),
losing the marks, jump-points, etc. in that range.  But :w shouldn't
impact those.

-tim





-- 
-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/vim_use/Zxo-w09DSJXkSuy2%40thechases.com.

Reply via email to