An open API service indexing awesome lists of open source software.

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.

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`