Is there a way to get the command in vi that I typed in previously? I am sure there must be, but I just don't know how to get it.
Here is an example,
I typed following command to modify the word outputofthisfile from a file
Code:
:%s/outputofthisfile/output of this file/g
After executed, it reported that it could not find that word.. Well I realized that it should be /inputofthisfile/ instead.
I want to modify the /outputofthisfile/ to /inputofthisfile/ instead of writing the whole thing again.