Monday, November 9, 2009

Small Tricks in VIM

  • Format the current paragraph: gqap
  • View hex files
    1. Use "vim -b" or "set binary" after opening
    2. %!xxd
  • Disable the beep (including the visual beep): set visualbell t_vb=
  • Replace texts in a range: Select a range in the visual mode, and then press ":". The range will be automatically generated. Then type s/<to be replaced>/<replacement>/<options>

No comments: