Start the editor on a file path.
Section: Startup commands
Open a file from shell
bash
bash
vim file.txt
nvim file.txtExplanation
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