Display current directory
Example
Normal 0 / 2Command-line 1 / 2Normal 2 / 2Display current directory.
Directory scope
- Global cwd
/demo/project- Current tab
inherits global- Current window
no local override
Vim messages
Empty
Command entered · ready to apply
Directory scope
- Global cwd
/demo/project- Current tab
inherits global- Current window
no local override
Vim messages
Empty
Displays the effective current directory /demo/project.
Directory scope
- Global cwd
/demo/project- Current tab
inherits global- Current window
no local override
Vim messages
/demo/project
Before & after
Before
Directory scope
- Global cwd
/demo/project- Current tab
inherits global- Current window
no local override
Vim messages
Empty
After
Directory scope
- Global cwd
/demo/project- Current tab
inherits global- Current window
no local override
Vim messages
/demo/project
Subject: :pwd. Documentation-backed illustration; assumes displayed directory scope and verbose=0; not replay-verified. Displays the effective current directory /demo/project.
notes
Cursor on line 1, column 1Details & Vim help
Display current directory. 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. The index spelling :pw[d] puts the optional abbreviation suffix in square brackets; those brackets are not typed. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.