vim အကြောင်း

Movement

  • j = down arrow
  • k = up arrow
  • l = right arrow
  • h = left arrow
  • G = go to end of file
  • gg = go to start of file
  • { = go up in code block
  • } = go down in code block
  • number + cmd = အကြိမ်မြောက် + command
  • w = go to next word
  • W = go to next space
  • b = go to previous word
  • :3 = go to line 3
  • ^ = beginning of line word
  • $ = end of line word
  • 0 = starting point of a line
  • * = find the next same word
  • f[word] = find and go the [word]
  • t; = go to next word

Editing

  • d d = delete a line
  • u = undo
  • ^R = redo
  • i = insert mode
  • esc = escape from insert mode
  • V = visual mode to select text
  • o = add new line below and enter insert mode
  • O = add new line above and enter insert mode
  • dw = delete a word
  • % = go to { }
  • D = delete the rest line
  • c = insert mode and change the line
  • ct [ word] = isnert mode and change the line up to [word]
  • C = delete the rest and enter insert mode
  • dt [word]= delete to [word]
  • x = delete
  • A = go to end of line and insert mode
  • ~ = uppercase lowercase

Written by

Don’t follow me. I wrote junks here. Follow me on Twitter instead.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store