Section: Startup commands

Open a file from shell

bash
bash
vim file.txt
nvim file.txt
Explanation

The standard entry point for everyday editing from the terminal.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Startup commands
Open file at a specific line
Jump directly to a target line on startup.
OpenIn sheetbashsame section
Open read-only
Prevent accidental writes while reviewing.
OpenIn sheetbashsame section
Start without user config
Launch a clean environment for config debugging.
OpenIn sheetbashsame section
Start in diff mode
Open two files side by side for comparison.
OpenIn sheetbash1 tag match
Recover from a swap file
Open recovery mode for a specific file.
OpenIn sheetbash1 tag match
Jump between diff hunks
Move to the next or previous change region.
OpenIn sheetvim1 tag match