diff --git a/Linux/vim.md b/Linux/vim.md index 8bba07e..74900c2 100644 --- a/Linux/vim.md +++ b/Linux/vim.md @@ -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 | \ No newline at end of file