Vim Simple to use

Source: Internet
Author: User

Excerpt from: http://blog.csdn.net/niushuai666/article/details/7275406I. Installation of VIM
sudo apt-get install vimSecond, use
Two modes of vim: Normal, Insert
    • After starting vim, Vim is in Normal mode.
    • Let's go into Insert mode, press the key I. (Chenhao Note: You will see a –insert– word in the lower left corner of vim, indicating that you can enter it as inserted)
    • At this point, you can enter the text as if you were using Notepad.
    • If you want to return to Normal mode, press the ESC key.
Here are some commands that you can take in NormalMode survived
    • iInsert mode, press ESC back to Normal mode.
    • x→ Delete one character of the current cursor.
    • :wq→ Save + exit (save :w , :q exit) (Chenhao Note:: W can be followed by file name)
    • dd→ Delete the current line and save the deleted line to the Clipboard
    • p→ Paste Clipboard
Recommended
      • hjkl(strong example recommends using it to move the cursor, but not necessary) → You can also use the cursor key (←↓↑→). Note: j just like the down arrow.
      • :help <command>→ Displays help for related commands. You can also type without :help command. (Chenhao Note: Exit help requires input: Q)

Vim Simple to use

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.