Vim Editor Usage Summary

Source: Internet
Author: User


Full-screen editor: VIM

Vi:visual interface

VI, VI improved

Vim:

Pattern:

Edit mode: Command mode

Input mode:

Last-line mode:

edit Mode - Input mode:

I:insert,

a : Append,

o : New Line,

I: beginning

A : End of line

O : New row above

Input Mode - edit mode:

Esc

edit Mode - last-line mode:

:

last-line mode - edit Mode

Esc

Open Vim:

# VIM

# Vim/path/to/somefile

+# : # is the line number , after opening the file, the cursor navigates to page # Line Start

+/pattern : The cursor is positioned to match the first one after opening Pattern Place

Close Vim :

: Q exit directly without making changes

: q! do not save exit after change

: Wq exit after saving changes

: x Save changes Exit

ZZ : Save Exit

Cursor Jump:

Jump between characters:

h: left

L: Right

J: downward

K: Upward

#COMMAND: the arrow key before the number indicates that a few characters are skipped in the specified direction

Jump between words:

Vim Editor Usage Summary

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.