Vim Introduction, Vim color display and move cursor, VIM general mode move cursor, VIM general mode copy, cut and paste

Source: Internet
Author: User

Introduction to Vim

Text editor, support for Linux, Windows, Mac systems


Vim color display and move cursor

On: K NK: Move up n rows 9999k or GG can move to the first line G move to the last row

Under: J NJ: Move Down n rows

Left: H NH: Move n columns to the left

Right: L nl: Move n columns to the right

Shift+4: Move to end of line

Shift+6: Move to the beginning of the line

GG: to the first line

G: to the last line

NG: Move to Nth row
CTRL+F: Page Backward

Ctrl+b: Page Forward


Vim General mode to move the cursor

Move the cursor with the arrow keys


Vim Replication in general mode

DD: Delete the line where the cursor is located

NDD: Delete n lines below the cursor

YY: The line where the cursor is copied

U: Restore previous action

P: Paste Down

P: Paste Up


This article is from the "Discover new things" blog, make sure to keep this source http://shenj.blog.51cto.com/5802843/1977534

Vim Introduction, Vim color display and move cursor, VIM general mode move cursor, VIM general mode copy, cut and paste

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.