docs: update Linux/vim

This commit is contained in:
Lukas Forsberg 2025-10-11 18:48:51 +02:00 committed by Lukas Forsberg
parent 01ac548335
commit 677eeb17cd

View File

@ -2,7 +2,7 @@
title: Vim
description:
published: true
date: 2025-10-11T16:48:26.443Z
date: 2025-10-11T16:48:50.007Z
tags:
editor: markdown
dateCreated: 2025-10-11T16:38:44.398Z
@ -54,5 +54,15 @@ dateCreated: 2025-10-11T16:38:44.398Z
| `?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 |