docs: update Linux/vim

This commit is contained in:
Lukas Forsberg 2025-10-11 18:48:13 +02:00 committed by Lukas Forsberg
parent 21d25d34b0
commit 377fec4376

View File

@ -2,7 +2,7 @@
title: Vim
description:
published: true
date: 2025-10-11T16:47:44.241Z
date: 2025-10-11T16:48:11.779Z
tags:
editor: markdown
dateCreated: 2025-10-11T16:38:44.398Z
@ -46,3 +46,13 @@ dateCreated: 2025-10-11T16:38:44.398Z
| `.` | Repeat last change |
| `"+y` | Copy to system clipboard |
| `"+p` | Paste from system clipboard |
## Format
| Command | Description |
| - | - |
| `/pattern` | Search forward |
| `?pattern` | Search backward |
| `n` / `N` | Next / previous result |
| `:%s/old/new/g` | Replace all in file |
| `:s/old/new/g` | Replace all in current line |
| `:%s/old/new/gc` | Confirm each replacement |