Jun's Blog

Output, activities, memo and etc.

Vim tips

Help

  • :h
  • :h command such :h gU
  • :h text_file_name.

Insert long line

  • 80 x "=" string : 80 i = Esc

Insert one indent for one range

ma
(scroll)
>`a

Convert a word to upper case, lower case.

  • Convert the word to upper case: gUaw
  • Convert the word to lower case: guaw
  • Convert current line to upper case: gUgU
  • Convert current line to lower case: gugu

Others

  • ^: to first non-blank character.
  • 0: to first character.
  • Input tab: Ctrl-v tab
  • *: Search the word on the cursor
  • Delete entire paragraph: dap