docs: update Linux/vim
This commit is contained in:
parent
677eeb17cd
commit
d027cdd7eb
26
Linux/vim.md
26
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 |
|
||||
| `:%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` |
|
||||
Loading…
x
Reference in New Issue
Block a user