Brisk VIM (1): Mobile

Source: Internet
Author: User
Brisk VIM (1): it has been a year since the mobile phone used VIM intermittently. it will always use a few commands, and the efficiency is extremely low. www.2cto.com changed Windows to LinuxMint in the last few weeks, it's basically also stable. tonight, I have made up my mind to start a new VIM journey. By the way... the brisk VIM (1): it has been a year since the mobile phone used VIM intermittently. it will always use a few commands, and the efficiency is extremely low. www.2cto.com changed Windows to Linux Mint in the last few weeks, it's basically also stable. tonight, I have made up my mind to start a new VIM journey. By the way, I write a series of notes and summaries, and I am just a newcomer, I have never written many lines of code, but I have been quietly trying to learn it by myself. I also want the old birds to have a look and smile. don't despise me. I am very weak ...... This is the first section of the brisk VIM series. each section will be updated constantly. add more skills to the section. come on, let's sum up and practice together ...... You can also use the arrow keys on the keyboard to move the base www.2cto.com character to move k up and save kh to move h ll to move jj down, however, the existence of h j k l is meaningless. The main purpose of using h j k l to control the direction is to keep your hands away from the keyboard center, to improve the efficiency, add a number before the command to indicate the number of command executions, for example, 5 k, move 5 rows up W w w e e w W w: i'm, e is treated as two words, and E is not the same. adding a number before the command indicates the number of executions, for example, 2 w, it indicates moving the start of two words down. I may say it several times, because this technique is very important to move the entire row 0 to the beginning of the row $ move to the end of the row + move to the beginning of the next line-move to the beginning of the previous line here you need to pay attention to what +-and the above j k has the difference is that j k is also moved to the previous row and the next row, but they move the cursor position +-no matter where your cursor is, always move to the next line or the last line of the first advanced scrolling screen Ctrl + f scroll forward a whole screen Ctrl + B scroll back a whole screen Ctrl + d scroll forward half screen Ctrl + u scroll back half screen Ctrl + e scroll back one line Ctrl + y scroll forward one line seems more, however, you can remember it based on the keyboard position, and the two below do not often use the above scrolling screen. One thing is that it will change the cursor position, and the screen is also changing. if you want to keep the cursor at the original position for scrolling, see below to adjust the cursor z Move the row where the cursor is located to the top of the screen z. move the row where the cursor is located to the center of the screen z-move the row where the cursor is located to the bottom of the screen tips: 980z You can move 980th rows to the top of the screen. well, sometimes you don't want to scroll, you just want to move in the current screen please look down in the screen H move to the top of the screen M move to the center of the screen L move to the bottom of the screen line nH move to the top of the screen n line nL row n at the top of the screen. I guess these three letters should be short for "HIgh", "Middle", and "Low, in fact, it is easy to remember to practice it several times. it should be noted that the cursor position is changed here, which is different from the above two tips: you can use +-and j k to achieve the same location change, but you only need to perform the operation multiple times +-and j k do not forget? Move ^ To a non-space place in the current row. n | move to column n of the current row. the ^ Here is the same as the position indicated by the above 0. n |, I personally feel that there is no h l convenience, it is better to move the number of travel slowly to the left or right according to h l. move the so-called text blocks, such as sentences, paragraphs, and sections, to the beginning of the current sentence) move to the beginning of the next sentence {move to the beginning of the current paragraph} to the beginning of the next section [[move to the beginning of the current section] move to the beginning of the next section, where VIM starts? .! Mark a blank line in a sentence to mark a paragraph with a section macro to mark a section (I haven't figured out what a section macro is) move Ctrl + g according to the row number to display the current row information nG to the nth row G to the end of the text if you do not know the current number of rows, you can use Ctrl + g to view if you want to convert to 800th rows, you can also use the 800G z command, and move the cursor to the first line of tips: ''to return to the position before G.

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.