Section: Startup commands

Open read-only

bash
bash
vim -R file.txt
nvim -R file.txt
Explanation

Handy for logs, generated files, and audits.

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 a file from shell
Start the editor on a file path.
OpenIn sheetbashsame section
Open file at a specific line
Jump directly to a target line on startup.
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