Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tools:vim [2025/03/10 15:52] – vid79 | tools:vim [2025/07/30 10:50] (current) – [Commands] vid79 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Vim ====== | ====== Vim ====== | ||
- | '' | ||
- | | + | '' |
+ | |||
+ | * **MIT's " | ||
+ | Vim’s design is based on the idea that a lot of programmer time is spent reading, navigating, and making small edits, as opposed to writing long streams of text. For this reason, Vim has multiple operating modes. | ||
+ | - Normal: for moving around a file and making edits | ||
+ | - Insert: for inserting text | ||
+ | - Replace: for replacing text | ||
+ | - Visual (plain, line, or block): for selecting blocks of text | ||
+ | - Command-line: | ||
* '' | * '' | ||
* [[https:// | * [[https:// | ||
- | **vim commands:** | + | |
- | vim [file name] opens a file in vim. If that file doesn' | + | ===== Commands ===== |
- | i puts you in insert | + | |
- | //esc// gets you out of insert mode | + | Victoria' |
- | :q quits vim | + | |
- | :wq saves what you wrote and quits vim | + | - '' |
- | :q! does not save what you wrote and quits vim | + | - '' |
+ | - '' | ||
+ | - '': | ||
+ | |||
+ | move around | ||
+ | - '' | ||
+ | - '' | ||
+ | - '' | ||
+ | - '' | ||
+ | - '' | ||
+ | - up and down arrows move you up and down each line but to move between lines click '' | ||
+ | - '' | ||
+ | close vim temporarily | ||
+ | * '' | ||
+ | * '' | ||
+ | exit | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' |