Vim光标移动

Normal模式下

  • j: move down one line
  • k: move up one line
  • h: move left one character
  • l: move right one character
  • 0: move to the beginning of the line
  • $: move to the end of the line
  • w: move forward one word
  • b: move back one word
  • e: move to the end of your word
  • ): move forward one sentence
  • }: move forward one paragraph
  • :line_number: move to a given line number(the same as nG)
  • nG: go to the n line
  • H: move to the top of the screen
  • M: move to the middle of the screen
  • L: move to the bottom of the screen
  • ^: move to the first non-blank character of line
  • ^E: scroll up one line
  • ^Y: scroll down one line
  • gg: go to the top of the file
  • G: go to the bottom of the file
  • %: search the first ( “)”,”}”,”]” ) in current line
  • ^U: move up half a page
  • ^D: move down half a page
  • ^F: move down a page
  • ^B: move up a page
  • {: paragraphs backward
  • }: next paragraphs
  • [[: move to the beginning of text
  • ]]: move to the end of text
  • Ctrl-i: jump to your previous navigation location
  • Ctrl-o: jump back to where you were
This entry was posted in vim. Bookmark the permalink.