Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [undo-redo]

Question about navigation in the undo history, undoing, and redoing changes

11 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4 votes
0 answers

How can I undo last command in command line?

In general, is there a way to UNDO the last "meta" command (I mean a command entered in command line to manage a window ), or some equivalent keystroke sequence ? Btw, I know the u (= undo) and CTRL-...
Giorgio Robino's user avatar
2 votes
0 answers

Method for each split to have its own undo buffer?

Often, I want to edit multiple different parts of the same file simultaneously. This is usually done with a number of splits. Is there a way such that the undo history in each split is separate? E.g., ...
Walt W's user avatar
  • 121
2 votes
0 answers

make u (undo) also reset . (repeat last command)?

Sometimes I make a change, then in my scramble to move to somewhere else that I want to repeat the change, I accidentally make some edit (e.g. ill). I would normally undo the accidental edit with u, ...
minseong's user avatar
  • 2,333
2 votes
0 answers

Bash process substitution on vim command line?

I want to be able to show someone a particular file's undo history in vim, remotely. It's a little complicated, so let me explain one step at a time. For starters, I can set a custom undofile and ...
Ryan Lue's user avatar
  • 891
1 vote
0 answers

Unable to undo some symbolic links

I have the following symbolic link for my ~/.vimrc ~/.vimrc -> ~/Dropbox/Backup/Dotfiles/.vimrc When I edit this file with vim ~/.vimrc, I see an undofile is created which looks like this: %Users%...
Matt's user avatar
  • 177
1 vote
0 answers

How to see offscreen undo changes?

Imagine a text file with some words on the first line, one-thousand blank lines, and some text on the last line. this is a first line of text. <1000 blank lines> Last line of text. From the ...
Jordan Mandel's user avatar
1 vote
0 answers

How can I make Vim not remember a command?

I have set up an autocommand, that makes some changes to the file I'm working on, whenever I save. Everything works nice and dandy, except one thing. Whenever I save, and press . afterwards, or undo ...
hgiesel's user avatar
  • 1,944
1 vote
0 answers

How to view the command that was just un(re)done

Is it possible to see the sequence of key presses that are undone/redone when using u and Ctrl-r commands?
rviertel's user avatar
  • 111
0 votes
0 answers

undofile without changing :undo

I think of writing as saving, and quitting as committing. Recently I discovered "undofile" which while wonderful breaks my save/quit mental model. I'd like for ":undo" with "...
user19087's user avatar
  • 101
0 votes
0 answers

Can't undo past last save, but only sometimes

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 ...
user2153235's user avatar
0 votes
0 answers

How can I view aggregated last undo changes in a directory with persistent undo?

I have persistent undo enabled for vim, is there someway I can inspect a directory's entire undo history? For example something like a list of files sorted by last change recorded. My intention is to ...
Chris Stryczynski's user avatar