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/10/07 14:35] (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 | + | - '' |
| - | :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 '' | ||
| + | - '' | ||
| + | |||
| + | Copy and paste | ||
| + | * Click '' | ||
| + | * to cut- move your cursor to highlight the words you want to cut and press '' | ||
| + | * to copy- move your cursor to highlight the words you want to copy and press '' | ||
| + | * move your cursor to where you want to paste words and press '' | ||
| + | |||
| + | close vim temporarily | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | exit | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||