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