Prevent accidental writes while reviewing.
Section: Startup commands
Open read-only
bash
bash
vim -R file.txt
nvim -R file.txtExplanation
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