https://github.com/davidisfelix/vscodevim-bindings
VS Code Vim bindings I use often.
https://github.com/davidisfelix/vscodevim-bindings
vim vscode vscodevim
Last synced: 10 months ago
JSON representation
VS Code Vim bindings I use often.
- Host: GitHub
- URL: https://github.com/davidisfelix/vscodevim-bindings
- Owner: davidisfelix
- Created: 2024-11-29T08:02:25.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-29T08:27:06.000Z (over 1 year ago)
- Last Synced: 2025-06-14T17:03:34.880Z (about 1 year ago)
- Topics: vim, vscode, vscodevim
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# π VS Code Vim Commands Repository
Welcome to my personal repository where I store all the most commonly used **VS Code Vim commands**. This is a collection of useful shortcuts and commands that enhance my productivity when using **Vim** inside **VS Code**.
## π Table of Contents
- [π Basic Commands](#-basic-commands)
- [π― Text Object Commands](#-text-object-commands)
- [π Search and Replace](#-search-and-replace)
- [π Command List](#-command-list)
---
## π Basic Commands
These are some of the essential Vim commands I use frequently in **VS Code**:
- `:w` β Save the file πΎ
- `:q` β Quit the editor β
- `:wq` β Save and quit πΎβ
- `:x` β Save and close if there are changes πΎπ
- `:e ` β Open a file π
---
## π― Text Object Commands
Text objects allow you to quickly select or manipulate parts of your text.
- `yi"` β Yank everything **inside double quotes** (`"`) π
- `ya"` β Yank everything **inside double quotes** **including the quotes** π
- `yi'` β Yank everything **inside single quotes** (`'`) π
- `ya'` β Yank everything **inside single quotes** **including the quotes** π
- `vi"` β Visually select everything **inside double quotes** π²
- `va"` β Visually select everything **inside double quotes** **including the quotes** π²
- `D` - Delete everything after cursor
---
## π Search and Replace
Search and replace is made easy with Vim commands:
- `/text` β Search for the text `text` π
- `:%s/old/new/g` β Replace all occurrences of `old` with `new` in the file π
- `:noh` β Remove search highlight π«
---
## π Command List
Hereβs a list of all the commands Iβve stored in this repo:
- `yi"` β Yank everything inside double quotes π
- `ya"` β Yank everything inside double quotes **including the quotes** π
- `yi'` β Yank everything inside single quotes π
- `ya'` β Yank everything inside single quotes **including the quotes** π
- `vi"` β Select everything inside double quotes π²
- `va"` β Select everything inside double quotes **including the quotes** π²
- `:w` β Save the file πΎ
- `:q` β Quit the editor β
- `:wq` β Save and quit πΎβ
- `:x` β Save and close if there are changes πΎπ
- `:e ` β Open a file π
- `/text` β Search for the text `text` π
- `:%s/old/new/g` β Replace all occurrences of `old` with `new` π
- `:noh` β Remove search highlight π«
## Super helpful
### Copy and replace text inside quotes
- `yi"` to yank text inside double quotes
- `:%s/` to search and replace
- `ctrl + r` then `"` to past yanked text
- `/` and `enter`