docs: update Linux/vim
This commit is contained in:
parent
01ac548335
commit
677eeb17cd
12
Linux/vim.md
12
Linux/vim.md
@ -2,7 +2,7 @@
|
|||||||
title: Vim
|
title: Vim
|
||||||
description:
|
description:
|
||||||
published: true
|
published: true
|
||||||
date: 2025-10-11T16:48:26.443Z
|
date: 2025-10-11T16:48:50.007Z
|
||||||
tags:
|
tags:
|
||||||
editor: markdown
|
editor: markdown
|
||||||
dateCreated: 2025-10-11T16:38:44.398Z
|
dateCreated: 2025-10-11T16:38:44.398Z
|
||||||
@ -54,5 +54,15 @@ dateCreated: 2025-10-11T16:38:44.398Z
|
|||||||
| `?pattern` | Search backward |
|
| `?pattern` | Search backward |
|
||||||
| `n` / `N` | Next / previous result |
|
| `n` / `N` | Next / previous result |
|
||||||
| `:%s/old/new/g` | Replace all in file |
|
| `:%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/g` | Replace all in current line |
|
||||||
| `:%s/old/new/gc` | Confirm each replacement |
|
| `:%s/old/new/gc` | Confirm each replacement |
|
||||||
Loading…
x
Reference in New Issue
Block a user