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
|
||||
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 |
|
||||
Loading…
x
Reference in New Issue
Block a user