U in normal mode to undo steps in vim, I wonder how to set a sort of a bookmark and create a undo command to undo steps/reverse to the bookmark moment in Vim. This would be nicer than just keep pressing
Via External Tooling
Consider using VCS systems like git or mercurial (the two leading distributed systems).
Aside: your question mentions capital
U, which has very different effects from
u. They both have their uses, but my goto is usually
u because it truly "undoes."
<Leader>u makes a good mapping for, e.g., undotree’s command.