[Practical.vim (2012.9)]. Drew.Neil.Tip50 Study Summary

Source: Internet
Author: User
Search to Navigate

Another way to quickly locate somewhere in Vim is to search for word using the symbol/followed by word you want to search, as follows:

It can be seen that multiple matches are displayed after the command is executed, and we can use n or N command to move the cursor to the previous or next occurrence.

Operate with a Search Motion

Similar to the F command, we can combine operation commands and move commands (called in vim for the search command to move the command, because moving the cursor, the previous F command is also a move command), to quickly manipulate an area of text, such as delete or modify.


We entered the visual mode in normal mode v , we can understand the selection mode, you can select the text. The current position is on the first letter of the takes, after entering the command /ge , the cursor moves to get's first letter G, the selection extends from the takes T to the get's G, the input h , the cursor moves to the left, the selection narrows to the space in front of G, enter the d command , the characters in the selection range are removed.

The above command can also be executed with the following command.

Enter the command first d , and then determine the extent of the deletion.

[Practical.vim (2012.9)]. Drew.Neil.Tip50 Study Summary

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.