quartz/content/notes/vim.md
Anmol Pandita 0345b22e2d update
2022-06-02 22:06:24 +05:30

38 lines
2.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: "Vim - The Personal Man"
tags:
- vim
---
## Navigation 👻
![[vim exiting]]
![[vim movements]]
## Text manipulation
| | |
| ------------------------------------ | ---------------------------------------------------- |
| x | **delete** *`at`* the cursor (→ in normal mode still) |
| i | **insert** *`before`* the cursor |
| I | **insert** *`beginning`* of the line |
| a | **insert** *`after`* the cursor |
| A | **append** *`after`* the line |
| o | **open** line *`above`* |
| O | **open** line *`below`* |
| s | **delete** character and insert |
| S | **delete** line and insert |
| R overstrike mode | **replace** text character by character (max 1 line) |
| c *<`movement`>* wW / bB / 2j / $/ 0 | **change** till (→ in *insert* mode now) *`cc`* - change one line |
| d *<`movement`>* wW / bB / 2j / $/ 0 | **delete** till (→ in *normal* mode still) *`dd`* - delete one line ... |
| r | replace single character (→ dont have to press ESC) |
| *<`number`>* ~ | **change** letter case |
> Remember - **(command)*(number)(text object)****