vim shortcut

Chrome plugin

  • X restore closed window (opposite of x)
  • c caret mode (adjust the cursor)
  • ^ go to previous visited tab
  • H go back in history, opposite L
  • J go one tab left, opposite K
  • gi focus the first input text

Vim

“word” can be letters, numbers, and underscores
“WORD” is anything that isn’t whitespace.

  • b moves by word, B moves by WORD
  • >> Indent line by shift width spaces
    << De-indent line by shift width spaces
    5>> Indent 5 lines
    5== Re-indent 5 lines
  • Cut/copy and paste using visual mode
    when selection over, d to cut, y to copy, p or P to paste after or before the cursor
  • V whole line selection (v char-based selection)