Vim open Linux under file each line has a ^m style behind it

Source: Internet
Author: User

Because the server is not me alone in the operation, in the modification of the Apache configuration file found a very strange problem, vim edit Open Profile discovery has a ^m tag behind it

Although it doesn't affect the operation of the service, it doesn't feel right at all, so I'm trying to set it up in a replacement way :%s/\^m//g has succeeded but it feels not so simple,

After reviewing the information, it turns out that a colleague of mine has modified the file with the remote tool and the editor under Windows, so the carriage return problem is caused because the carriage return under Windows

Linux is different, specifically what does not want to do here overview, only say the command: Dos2unix httpd.conf Of course there is a command is unix2dos httpd.conf file

In Linux 2 there is a meaning of 2 for the meaning of the front to the back meaning, so many commands in Linux are two keywords or the general usage of the command combination is the same

For example: dumpe2fs and so on!

Vim open Linux under file each line has a ^m style behind it

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.