How do I reload/re-edit the current file?

You can use the “:edit” command, without specifying a file name, to reload the current file. If you have made modifications to the file, you can use “:edit!” to force the reload of the current file (you will lose your modifications, but depending on your ‘undoreload’ settings, those changes might be saved into the undo history).

Comments (1)


Pepsh Pepshinsky

Let’s see you to :help viminfo-file-name (option -i) :set viminfofile=NONE


Speak Your Mind