In Linux, VIM removes the carriage return symbol from the text file edited in windows.

Source: Internet
Author: User
In Linux, VIM removes the carriage return character in the text file edited in windows. if you use VIM to open the file created in windows, ^ M characters will appear, indicating a carriage return character. (in windows, the editor clicks the carriage return key, enter \ r and \ n, indicating the carriage return and line feed. in linux, there will only be line breaks \ n )...
In Linux, VIM removes the carriage return character in the text file edited in windows. if you use VIM to open the file created in windows, ^ M characters will appear, indicating a carriage return character. (in windows, the editor clicks the carriage return key, enter \ r and \ n, indicating the carriage return and line feed. in linux, only the line break \ n is available. in the following way: % s/^ M // g, ^ M is not input ^ and M, but input: 1, Ctr + V; 2, press enter // g to replace it with an empty character
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.