Vim & VSCode Advanced - Day 7
Vim
:tabo[nly]
Close all tabs except the active one; :tabnew
Create a new tab; :tabNext
Move to the next tab; :tabprevious
Move to the previous tab;
:pwd
Print the current working directory
- Use
/
search to move the sursor faster
- Use relative line numbers.
:his[tory]
to list command history
- Text Obejcts:
i/a/ys/cs
+ w/s/p/]/)/"/'/t
- Parameterized Text Objects:
- f, F => "find" the next character
- t, T => up to the next character
- / => Search (up to the next character)
Code
- command+t Search symbol in the file
- command+shift+t Search symbol in the workspace
- command+b Show/Hide activity bar
- ctrl+p Go to file
- command+p Git: push changes to the remote
Ref:
- Learning Vim in a Week
- Mastering the Vim Language
- 20 VS Code Shortcuts for Faster Coding