Vi & amp; vim move the cursor to scroll the screen

Source: Internet
Author: User

Vi & vim move cursor scroll screen Abstract: 1) move the cursor in the screen; 2) move the cursor in the row; 3) screen scroll; vi & vim has the compilation mode and command mode, the following cursor movement operations are performed in command mode. The ^ character below indicates that the Ctrl key is pressed. For example, ^ F indicates that the Ctrl and F keys are simultaneously pressed; in the following, press a key with the + sign and then press another key. For example, z + Enter indicates that the z key is pressed first, and then the Enter key is pressed. 1, move the cursor in the screen: in vi & vim command line mode, the cursor position is moved to the front of the word and letter to be edited. Key operation description h move the cursor one character to the left; j move the cursor one line down; k move the cursor one line up; l move the cursor one character to the right; Value + G move the cursor to the beginning of the row referred to by the "value; ^ H move the cursor to the beginning of the first line on the current screen; ^ M move the cursor to the beginning of the middle line on the current screen; ^ L move the cursor to the beginning of the last line on the current screen; 2. move the cursor inside the file line: vi & vim command line mode: move the cursor inside the line. Words are separated by spaces. punctuation marks are considered as a word. Key operation description 0 (number 0) move the cursor to the beginning of the row where the cursor is located; $ move the cursor to the end of the row where the cursor is located; w move the cursor to the first letter of the next word; b. move the cursor to the first letter of the previous word; e. move the cursor to the last character of the word where the current cursor is located; 3. Scroll down the screen: press the button operation description ^ F. Scroll down the screen; ^ B screens scroll up one screen; ^ E screens scroll down one line; ^ Y screens scroll up one line; ^ D screens scroll down half screen; ^ U screens scroll up half screen; z + Enter scroll the screen to make the row where the current cursor is located in the first line of the screen; z +. scroll the screen to make the row where the current cursor is located in the middle of the screen; z +-scroll the screen to make the row where the current cursor is located in the last line of the screen;

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.