From d027cdd7eb180f16b6e33cc1d830bd9a63d9bdc4 Mon Sep 17 00:00:00 2001 From: Administrator Date: Sat, 11 Oct 2025 18:49:38 +0200 Subject: [PATCH] docs: update Linux/vim --- Linux/vim.md | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/Linux/vim.md b/Linux/vim.md index 7834649..4e814af 100644 --- a/Linux/vim.md +++ b/Linux/vim.md @@ -2,7 +2,7 @@ title: Vim description: published: true -date: 2025-10-11T16:48:50.007Z +date: 2025-10-11T16:49:37.591Z tags: editor: markdown dateCreated: 2025-10-11T16:38:44.398Z @@ -65,4 +65,26 @@ dateCreated: 2025-10-11T16:38:44.398Z | `: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 +| `:%s/old/new/gc` | Confirm each replacement | + +## Visual Mode +| Command | Description | +|----------|--------------| +| `v` | Start character selection | +| `V` | Line selection | +| `Ctrl+v` | Block selection | +| `y` | Yank (copy) | +| `d` | Delete | +| `p` | Paste over selection | + +## VS Code Integrations +| Action | Shortcut | +|--------|-----------| +| Open command palette | `:action ShowCommands` or `Ctrl+Shift+P` | +| Open file | `Ctrl+P` | +| Toggle terminal | `Ctrl+\`` | +| Split editor | `:vsplit` or `Ctrl+\` | +| Switch editor group | `Ctrl+w w` | +| Save | `:w` or `Ctrl+s` | +| Quit | `:q` | +| Save & Quit | `:wq` | \ No newline at end of file