diff --git a/Linux/vim.md b/Linux/vim.md index 8346cd8..7834649 100644 --- a/Linux/vim.md +++ b/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 | \ No newline at end of file