mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-23 14:42:19 +02:00
19 lines
345 B
Markdown
19 lines
345 B
Markdown
# vim
|
|
|
|
> Vi IMproved, a programmers text editor
|
|
|
|
- open a file with cursor at the given line number
|
|
|
|
`vim {{file}} +{{linenumber}}`
|
|
|
|
- open multiple files at once, each file in it's own tab page
|
|
|
|
`vim -p {{file1}} {{file2}} {{file3}}`
|
|
|
|
- open a file in read-only mode
|
|
|
|
`view {{file}}`
|
|
|
|
- exiting vim
|
|
|
|
`[Esc] (to switch to normal mode), then :q`
|