Best of VIM tips-serialization 2 Lookup ()

Source: Internet
Author: User

[Translation]

 

/Joe/E:Cursor set to end of Match

Position the cursor at the last letter of the matching word

/Joe/e + 1:Cursor set to end of match plus 1

Position the cursor at the next letter matching the last letter of the word

/Joe/S-2:Cursor set to start of match minus 2

Position the cursor in the position that matches the first letter of a word before two letters.

/Joe/+ 3:Find Joe move cursor 3 lines down

Search for JoeMove the cursor down 3Line

 

[Annotation]

: Help/

: Help?

We all know the search commands in VIM: "/" or "?", Where "/" is a downward query, "?" Is to search up.

 

: Help search-offset

When searching, the default cursor is placed on the first letter of the word to be searched. However, you can specify the cursor offset when searching for the word. The offset can be the start, end, number of rows down, or number of rows up relative to the word.

 

[Reference]

1. http://www.rayninfo.co.uk/vimtips.html

2. http://groups.google.com/group/Vim-cn/msg/f72fba0645955101?

3. Vim Help File

4. http://vimcdoc.sourceforge.net/

[Note]

This article can be freely used for non-commercial purposes. Indicate the source for reprinting.

Link: http://blog.csdn.net/easwy

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.