Vim Editing a File

:e[dit]Edit the current fileThis is useful to re-edit the current file, when it has been changed outside of Vim.
:e[dit]!Edit the current file alwaysDiscard any changes to the current buffer. This is useful if you want to start all over again.
:e[dit] {file}Edit {file}
:e[dit]! {file}Edit {file} alwaysDiscard any changes to the current buffer.
gfEdit the file whose name is under or after the cursorMnemonic: goto file.

Leave a Reply

Your email address will not be published. Required fields are marked *