Visual visual mode of Vim (reproduced)

Source: Internet
Author: User

Transferred from: http://www.cnblogs.com/chenyadong/archive/2011/08/30/2159809.html

To facilitate the selection of text, VIM introduces Visual (visual) mode. to select a piece of text, first move the cursor to the beginning of the paragraph, press v in normal mode to enter the visual mode, and then move the cursor to the end of the paragraph. It is important to note that the character of the cursor is contained in the selection. You can do some work on the selected text, and the commonly used (visual mode) commands are:
X or D cut (that is, delete, and the selected text goes to the clipboard)
Y copy
R character replaces all characters with new characters
u u ~ are all letters lowercase, uppercase, reversed case
>
When the command is entered, VIM returns to normal mode, which can be pasted by P or p. commands for copying and pasting in normal mode:
V Enter visual mode
P or P pastes the contents of the Clipboard at the current position, p sticks to the character behind the cursor, p sticks to the front
Admittedly, although the introduction of visual mode, copying and pasting in VIM is still a cumbersome operation, which may be the only disadvantage of vim. :-) In addition, VIM introduces selection (select) mode, similar to the visual mode. Combined with some key definitions and option settings, you can implement the same copy and paste usage habits as Notepad. Confined to space and level, not mentioned here.

Visual visual mode of Vim (reproduced)

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.