Vim & VSCode Advanced - Day 7

Vim & VSCode Advanced - Day 7

  • 2020-3-4

Vim

  1. :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;
  2. :pwd Print the current working directory
  3. Use / search to move the sursor faster
  4. Use relative line numbers.
  5. :his[tory] to list command history
  6. Text Obejcts: i/a/ys/cs + w/s/p/]/)/"/'/t
  7. Parameterized Text Objects:
    • f, F => "find" the next character
    • t, T => up to the next character
    • / => Search (up to the next character)

Code

  1. command+t Search symbol in the file
  2. command+shift+t Search symbol in the workspace
  3. command+b Show/Hide activity bar
  4. ctrl+p Go to file
  5. command+p Git: push changes to the remote

Ref:

  1. Learning Vim in a Week
  2. Mastering the Vim Language
  3. 20 VS Code Shortcuts for Faster Coding