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:54] – vid79 | tools:vim [2025/10/07 14:35] (current) – [Commands] vid79 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Vim ====== | ====== Vim ====== | ||
| - | '' | ||
| - | * MIT's " | + | '' |
| - | * '' | + | |
| - | * [[https:// | + | |
| + | **MIT' | ||
| + | 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:// | ||
| - | **vim commands** | ||
| - | vim [file name] opens a file in vim. If that file doesn' | + | ===== Commands ===== |
| - | i -> puts you in insert | + | - '' |
| + | - '' | ||
| + | - '' | ||
| + | - '': | ||
| - | // | + | move around |
| + | | ||
| + | - '' | ||
| + | - '' | ||
| + | - '' | ||
| + | - '' | ||
| + | - up and down arrows move you up and down each line but to move between lines click '' | ||
| + | - '' | ||
| - | :q -> quits vim | + | 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 '' | ||
| - | :wq -> saves what you wrote and quits vim | + | close vim temporarily |
| + | * '' | ||
| + | * '' | ||
| - | :q! -> does not save what you wrote and quits vim | + | exit |
| + | * '': | ||
| + | * '': | ||
| + | * '' | ||