1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-11-02 07:18:29 +01:00
tldr/pages/common/vim.md
2016-01-16 15:12:05 +01:00

19 lines
348 B
Markdown

# vim
> Vi IMproved, a programmer's 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}}`
- Exit vim:
`[Esc] (to switch to normal mode), then :q`