Compare commits

...

7 Commits

Author SHA1 Message Date
86f9287a0f docs: update Linux/vim 2025-10-11 18:49:49 +02:00
d027cdd7eb docs: update Linux/vim 2025-10-11 18:49:38 +02:00
677eeb17cd docs: update Linux/vim 2025-10-11 18:48:51 +02:00
01ac548335 docs: update Linux/vim 2025-10-11 18:48:27 +02:00
377fec4376 docs: update Linux/vim 2025-10-11 18:48:13 +02:00
21d25d34b0 docs: update Linux/vim 2025-10-11 18:47:45 +02:00
4e5e05716a docs: update Linux/vim 2025-10-11 18:47:41 +02:00

View File

@ -2,7 +2,7 @@
title: Vim
description:
published: true
date: 2025-10-11T16:47:26.917Z
date: 2025-10-11T16:49:48.279Z
tags:
editor: markdown
dateCreated: 2025-10-11T16:38:44.398Z
@ -13,13 +13,13 @@ dateCreated: 2025-10-11T16:38:44.398Z
## Insert
| Command | Description |
| - | - |
| i | Insert before cursor |
| I | Insert at start of line |
| a | Insert after cursor |
| A | Insert at end of line |
| o | New line below |
| O | New line above |
| Esc | Back to Normal mode |
| `i` | Insert before cursor |
| `I` | Insert at start of line |
| `a` | Insert after cursor |
| `A` | Insert at end of line |
| `o` | New line below |
| `O` | New line above |
| `<Esc>` | Back to Normal mode |
## Navigation
| Command | Description |
@ -46,3 +46,45 @@ dateCreated: 2025-10-11T16:38:44.398Z
| `.` | Repeat last change |
| `"+y` | Copy to system clipboard |
| `"+p` | Paste from system clipboard |
## Search and Replace
| Command | Description |
| - | - |
| `/pattern` | Search forward |
| `?pattern` | Search backward |
| `n` / `N` | Next / previous result |
| `:%s/old/new/g` | Replace all in file |
## Indent, Format, Repeat
| Command | Description |
|----------|--------------|
| `>>` / `<<` | Indent / unindent line |
| `=` | Auto-indent selection |
| `J` | Join line below |
| `.` | Repeat last command |
| `:set number` | Show line numbers |
| `:noh` | Clear search highlight |
| `:s/old/new/g` | Replace all in current line |
| `:%s/old/new/gc` | Confirm each replacement |
## Visual Mode
| Command | Description |
|----------|--------------|
| `v` | Start character selection |
| `V` | Line selection |
| `Ctrl+v` | Block selection |
| `y` | Yank (copy) |
| `d` | Delete |
| `p` | Paste over selection |
## VS Code Integrations
| Action | Shortcut |
|--------|-----------|
| Open command palette | `:action ShowCommands` or `Ctrl+Shift+P` |
| Open file | `Ctrl+P` |
| Toggle terminal | `Ctrl+\`` |
| Split editor | `:vsplit` or `Ctrl+\` |
| Switch editor group | `Ctrl+w w` |
| Save | `:w` or `Ctrl+s` |
| Quit | `:q` |
| Save & Quit | `:wq` |