In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
In this article, the editor introduces in detail "how to delete the end of a line in vim". The content is detailed, the steps are clear, and the details are handled properly. I hope this article "how to delete the end of a line in vim" can help you solve your doubts.
After pull the file from git, I accidentally opened it with vim and found that every line has ^ M at the end of the line, and then I opened it with vi. Open it with eclipse or gedit but not.
Html {^ M font-size: small; ^ M font-family: arial, sans-serif; ^ M} ^ M body {^ M background: # fff; ^ M margin: 0 auto; ^ M color: # 000; ^ M font-family: 13px/18px Arial,Tahoma,Verdana; ^ M width:80%; ^ M border-right:1px solid # 666666; ^ M border-left:1px solid # 666666; ^ M} ^ M solution:
1, delete with the sed command
# sed-I's /\ rUnigram g' filename
2. After opening the file with vim,vi
After reading this, the article "how to delete the end of a line in vim" has been introduced. If you want to grasp the knowledge points of this article, you still need to practice and use it before you can understand it. If you want to know more about related articles, welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.