📜 VS Code Vim Commands Repository Welcome to my personal repository where I store all the most commonly usedVS Code Vim commands . This is a collection of useful shortcuts and commands that enhance my productivity when usingVim insideVS Code .
These are some of the essential Vim commands I use frequently inVS 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 objects allow you to quickly select or manipulate parts of your text.
yi" — Yank everythinginside double quotes (") 📋ya" — Yank everythinginside double quotes including the quotes 📝yi' — Yank everythinginside single quotes (') 📋ya' — Yank everythinginside single quotes including the quotes 📝vi" — Visually select everythinginside double quotes 🔲va" — Visually select everythinginside double quotes including the quotes 🔲D - Delete everything after cursorSearch and replace is made easy with Vim commands:
/text — Search for the texttext 🔍:%s/old/new/g — Replace all occurrences ofold withnew in the file 🔄:noh — Remove search highlight 🚫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 quotesincluding the quotes 📝yi' — Yank everything inside single quotes 📋ya' — Yank everything inside single quotesincluding the quotes 📝vi" — Select everything inside double quotes 🔲va" — Select everything inside double quotesincluding 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 texttext 🔍:%s/old/new/g — Replace all occurrences ofold withnew 🔄:noh — Remove search highlight 🚫Copy and replace text inside quotes yi" to yank text inside double quotes:%s/ to search and replacectrl + r then" to past yanked text/<text-to-replace-with> andenter