vim
Vim,
Syntax
vim [options] [file ...]
Parameters
| Parameters | Description | Examples | Level |
|---|---|---|---|
file |
vim main.go |
Common | |
+n |
n | vim +10 config.yaml |
Common |
+/pattern |
vim +/TODO app.js |
Advanced | |
-O |
vim -O file1.js file2.js |
Advanced | |
-R |
vim -R /etc/nginx/nginx.conf |
Common |
Examples
vim index.html
vim +42 src/app.py
Common
vim +/function server.js
vim -O header.h main.c
Common Errors
E325: ATTENTION - Found a swap file, vim -r file,.swp
Tips
- vim +
- vim -d file1 file2 diff Comparisons