What does the = in vim mean?

Source: Internet
Author: User
Cscope recommended mappings in the documentation:
Nmap <c-_>s:cs Find S <c-r>=expand ("<cword>") <CR><CR>
What is the meaning of <c-r>=. An assignment statement. <C-R> is the meaning of inserting a register value, = is the meaning of the expression register. So the sentence is to insert the value of expand ("<cword>") at the command line, which is the word under the current cursor.
In fact, after <C-R> and then enter <C-W> is the current cursor under the meaning of the word,<c-r><c-w> and <c-r>=expand ("<cword>") should be equivalent.
I will generally look for caller mappings to:
Nmap F:cs F C <C-R><C-W><CR>
The lookup symbols are:
Nmap S:cs F s<c-r><c-w><cr>
F The intention is to go to the point where the next letter appears, S is cc consent, delete the current line and enter the insertion mode. Neither of them is common to me.
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.