Vim Common directives

Source: Internet
Author: User

Vim: Open File

CD: Go to Folder

LS: List files

Vim A, B opens a A, B file,

: N toggles back and forth, b

: N switches to the first file again at the end of a switch;

Vim + A: Open file A and navigate to the last line

Vim +/ab A opens file A and navigates to the position of the first occurrence of the AB string

N: Switch back and forth where AB appears

I: Enter edit mode

: Q exit

: q! does not save forced exits

: Wq: Save exit

%: The corresponding parentheses

mkdir: Create a folder

RM Delete File

: w: Save

:!: Force execution

: ls: List open files

: 15: Cursor is positioned to 15 rows

H: Left

J: Next

K: Up

L: Right

Digital +HJKL, moving a number of units separately

CTRL+B: Page Up

CTRL+F: Page Down

Ctrl+u: Up Half page

Ctrl+d: Down half page

DD: Delete cursor in the row

O: Insert row down, and enter mode

YY: Replication is in the row

P: Paste below the line again

MV: Change the file name

RZ: Upload

Rz-y: Upload Overlay

SZ: Download

Vim Common directives

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.