Tip #286: Recover after doing something... ugly.
tip karma |
Rating 4/12, Viewed by 916
|
created: |
|
July 23, 2002 1:07 |
|
complexity: |
|
basic |
author: |
|
Little Dragon |
|
as of Vim: |
|
5.7 |
I was once editing a file and wanted to test something. The test was meant to add a line at the end of the file, from outside vim. All was fine, but instead of >>, I wrote >. You can imagine what happened... :)
If you happen to do something like that, the solution is:
:recover
<<Don't use the escape key! |
Cool trick to change numbers >>
Additional Notes
|