Tuesday, March 8, 2011

how to reload the current file in Vim vi

You can use the following command, without specifying a file name, to reload the current file:


or shortcut

If you have made modifications to the file, you can use the following command to force the reload of the current file (you will lose your modifications):


or shortcut

For more information, read:

:help :edit
:help :edit!
:help 'confirm'


No comments: