Introduction to Vim


On this page short answers are provided to solve common problems. If something is unclear or you have another problem which you want to see added here, feel free to contact me. A good way to find fast answers here, is to use your browsers own search function (often accessed by <CTRL> + f).

I changed something in a file which I better do not change. How do I exit a file without saving? Press <ESC> followed by :q!<ENTER>

The last action was wrong, how do I undo what I have done? Press <ESC> followed by u.

Ok, but actually the action was not wrong at all, can I have it back? <ESC> and then U (capital U!) should undo the undone.