Linux Study notes Fourth week second class (February 27)

Source: Internet
Author: User
5.1 Vim Introduction


Vim is an upgraded version of VI,

Vim is highlighted with color,

Install #yum install-y vim-enhanced;

Vim has general mode, editing mode, command mode;

General mode, DD Delete a row, copy and paste, GG cursor moved to the file header, and so on;

Edit mode, press i,a, etc.;

Command mode, search,: Wq save exit, etc.;


5.2 Vim color display and move cursor


The same files, in different directories, may cause the color to not exist;

Copy files to another directory, #cp/etc/passwd/tmp/

Edit View file, #vim/tmp/passwd

Vim configuration file, #vim/ETC/VIMRC, to understand;


5.3 Vim General mode move cursor


5.4 Vim General mode copy, cut and paste

Ctrl+r restore the next operation;


Linux Study notes Fourth week second class (February 27)

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.