[Go] Gvim for windows in block selection method

Source: Internet
Author: User

In Gvim (Windows Edition), the shortcut key for a block selection is not <ctrl-v>

  • The general selection mode is: V (lowercase), which appears: visible.
  • The row selection mode is: V (uppercase), which appears: visual-line.
  • The most ferocious block selection mode is: <ctrl-q>, which displays: visual-block.

If you want to bulk insert comments, the following sequence of actions:

  1. Move the cursor to the first line of the comment block.
  2. Press ESC to enter normal mode.
  3. Press <Ctrl-q> to enter block selection mode.
  4. Move the cursor down with the H, J, K, L keys (Note: This can only be moved with these four keys, does not support the arrow keys).
  5. When the corresponding row is selected, press the I (uppercase) key.
  6. Enter//, and press ESC to complete the comment.

transferred from : http://blog.csdn.net/pdcxs007/article/details/19290367

[Go] Gvim for windows in block selection method

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.