Vim-copy a Word

Source: Internet
Author: User

1. Http://stackoverflow.com/questions/7797068/copying-a-word-and-pasting-over-a-word

VIWP- Visually select a word, and paste over it by something in the clip.

 

2. How to Copy/delete Word under cursor in Vim
http://www.littletechtips.com/2011/05/ how-to-copydelete-word-under-cursor-in.html

Assuming the cursor is at the first character of the word in command mo de:
yw (Y for Yank and W for word)

Other ways of doing the same thing which is not as efficient:
Vey (v Star TS Visual mode. E tells Vim to move to end of word. Y yanks or copies the word. To delete replace Y with X.)

If the cursor is somewhere in the middle of the word, add a "B" (before) the command:
Byw/bvey

Vim-co PY a word

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.