Linux Program Editor

Source: Internet
Author: User

Key reviews:
Linux under the configuration file is more text files, so use Vim can be set to edit;

Vim can be considered as the program editor, can be used to edit shell script, configuration files, etc., to avoid typos

VI for all UNIX-like operating systems will be present in the editor, and fast execution speed

VI has three modes, the general mode can be transformed to edit and command column mode, but the editing mode and the command column mode is not interchangeable;

Common keys are i,[esc],:wq and so on.

The picture of VI can be divided into two parts, (1) The upper part of this article and (2) The last line of the state + instruction column mode;

The number is meaningful to illustrate the meaning of repeating several actions, such as 5yy for copying 5 lines of meaning;

In the movement of the cursor, uppercase G is often used, especially 1g,g to move to the head/tail function of the article!

VI's replacement function is also very good! : N1,n2s/old/new/g should pay special attention to study;

decimal point "." To repeat the previous action, is also a very frequent use of the key function!

Enter edit mode almost as long as remember: i,o,r three button! In particular, the addition of a new row of O vs. substituted R

VIM will actively set up swap temporary archives, so do not arbitrarily short-term!

If there is a chunk within the article, you can use "Ctrl + V" to copy/paste up/delete the behavior

Use: SP function to split windows

The environment setting of Vim can be written in ~/.VIMRC file;

You can use Iconv to convert the file language encoding

Using Dos2unix and Unix2dos, you can change the line-breaking character for each line of the file.

Linux Program Editor

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.