file

:e

Edit (open) a file in the current window. With no argument, :e reloads the current file from disk — handy after external changes.

:e [filename]  (command mode)

Variations

Keystroke Effect
:e! Reload current file, discarding unsaved edits
:e# Switch to the alternate (previous) buffer — same as pressing <C-^>
:find name Open a file searched from 'path' setting
:Ex or :Explore Open netrw file browser in current window

Examples

:e src/app.js

Open src/app.js in this window

:e

Reload current file from disk

:e!

Discard changes and reload from disk

Gotcha

:e will refuse if the current buffer has unsaved changes; either save with :w first or force with :e!.

Related

← All Vim commands · Vim cheat sheet