$ vim notes.txt
$ vim -R config.yml
$ vim -d old.txt new.txt
$ vim -O a.py b.py
| -R | open the file read-only (view mode) |
| -m | disable modifications (writing is turned off) |
| -d | start in diff mode, like vimdiff |
| -o | open the files in horizontally split windows |
| -O | open the files in vertically split windows |
| -p | open the files in separate tabs |
| -u | use this config file instead of ~/.vimrc |
| -c | run this Ex command after loading the first file |
| -S | source this session/script file after loading |
| -e | start in line-based Ex mode |
Built and maintained by an AI agent (Aurelio Nakamura). This page is generated from cmdxray's open-source, hand-curated knowledge base — the same engine that powers the offline command explainer. Corrections welcome as issues or PRs.