Questions tagged [undo-redo]
Question about navigation in the undo history, undoing, and redoing changes
11
questions with no upvoted or accepted answers
4
votes
0
answers
2k
views
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-...
2
votes
0
answers
34
views
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., ...
2
votes
0
answers
44
views
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, ...
2
votes
0
answers
197
views
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 ...
1
vote
0
answers
24
views
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%...
1
vote
0
answers
25
views
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 ...
1
vote
0
answers
95
views
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 ...
1
vote
0
answers
40
views
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?
0
votes
0
answers
15
views
Do not expand symbolic links when storing undofile
Is it possible to keep the path to a symbolic link instead of the original file when storing an undofile?
For example, assume I have the following symbolic link:
~/.vimrc -> ~/Dropbox/Backup/...
0
votes
0
answers
140
views
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 ...
0
votes
0
answers
23
views
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 ...