Equivalent to :edit
Example
Normal 0 / 2Command-line 1 / 2Normal 2 / 2alphaCursor on line 1, column 1alphaCursor on line 1, column 1betaCursor on line 1, column 1Equivalent to :edit.
Windows
- alpha.txt Active
alpha
Command entered · ready to apply
Windows
- alpha.txt Active
alpha
Command line
- Typed text
:ex beta.txt- Insertion offset
12
:ex beta.txt opens beta.txt in the current window because :ex is an alias of :edit.
Windows
- beta.txt Active
beta
Current buffer
- Name
beta.txt- modified
no
Before & after
alphaCursor on line 1, column 1Windows
- alpha.txt Active
alpha
betaCursor on line 1, column 1Windows
- beta.txt Active
beta
Current buffer
- Name
beta.txt- modified
no
Documentation-backed illustration. alpha.txt is the current unmodified buffer and the prepared beta.txt file exists; :ex has the :edit semantics documented in editing.txt. :ex beta.txt opens beta.txt in the current window because :ex is an alias of :edit. Primary help: :ex.
Details & Vim help
Equivalent to :edit. This Ex reference uses the full command name; the alphabetical index omits arguments. Supply the ranges, arguments, flags and prerequisite state documented in the linked help. Press Enter to submit a complete command. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.