vim file.txt
nvim file.txtThe standard entry point for everyday editing from the terminal.
Launch editors with flags, compare files, recover swap data, and use terminal-friendly startup patterns.
Launch Vim or Neovim with practical flags for real workflows.
vim file.txt
nvim file.txtThe standard entry point for everyday editing from the terminal.
vim +42 app.ts
nvim +42 app.tsUseful from grep results, stack traces, or bug reports.
vim -R file.txt
nvim -R file.txtHandy for logs, generated files, and audits.
Launch a clean environment for config debugging.
vim -u NONE -U NONE
nvim --cleanExcellent for isolating plugin or configuration problems.
Compare files directly in the editor and navigate hunks.
vimdiff old.txt new.txt
nvim -d old.txt new.txtIdeal for merge reviews, code comparisons, and refactors.
]c [cThese motions make diff review much faster.
Take changes from one side or send them to the other.
:diffget :diffputHelpful during manual merges and conflict resolution.
Recover work after crashes and inspect swap-based recovery options.
vim -r file.txt
nvim -r file.txtUseful after crashes or interrupted sessions.
vim -r
nvim -rUseful when you remember the editor but not the original file path.
Save a recovered buffer to a safe path first.
:write recovered-file.txtA smart first step before cleaning up stale swap files.