Skip to content

davidisfelix/vscodevim-bindings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 

Repository files navigation

πŸ“œ 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

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 <file> β€” 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 <file> β€” 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
  • /<text-to-replace-with> and enter

About

VS Code Vim bindings I use often.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published