Vim Settings command

Source: Internet
Author: User

Command mode, enter the command:

: Set number Displays line numbers

: Set Cindent is indented in C language syntax

: Set autoindent adds the same indentation as the current row for the new row

: Some improvements to set smartcindent autoindent

GGVG Select All Commands

After a full selection,

D Delete Selection

Y copy content to number No. 0 register

"+y copied to the system clipboard for use by other programs

Vim has 12 pasteboard, respectively 0, 1, 2 、...、 9, A, ", +; use: Reg command to view the contents of each pasteboard.

In vim simply use y just copy to "(double quotation marks) in the Pasteboard, the same with P paste is also the content of this paste board;"

Vim Settings command

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.