Chris Lee
Chris Lee This, Too, Shall pass away.

vi & iterm tips

vi & iterm tips

Vi

  • H J K L - Left, Next Line, Previous Line, Right
  • + G -Bottom of document
  • GG - Top of document
  • / - Search Term
  • N - Next
  • + N - Previous

Command mode

  • : - enter command mode
  • :w - write
  • :q - quit
  • :q! - quit without saving
  • :wq - Write and quit
  • ZZ - Write and quit
  • :e filename - open <filename>
  • Esc - escape command mode
  • u - undo last command

Editor Mode

  • i - Insert at current position
  • + I - Insert at start of line
  • a - Append to end of line
  • o - Insert Line Below
  • + O - Insert Line Above
  • s - Delete character at current position and insert
  • + S - Delete the current line and insert

iterm

Working with multiple terminals

  • + T - New Tab
  • + - Previous Tab
  • + ( + + ) - Next Tab
  • + w ( + + ) - Close tab

Working with multiple terminals in same tab

  • + D - Split Vertically with Current Profile ⌘D
  • + + D - Split Horizontally with Current Profile
  • + ] - Next Pane
  • + [ - Previous Pane
  • + + - Select Pane Above
  • + + - Select Pane Below
  • + + - Select Pane Left
  • + + - Select Pane Right

Interacting with the terminal

  • + K - Clear Buffer

Changing font size

  • + - / + 0 / + +

Mac

  • + + Space - Characters (특수문자)
  • + , - Preferences

comments powered by Disqus