Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8440877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T08:25:11+00:00 2026-06-10T08:25:11+00:00

I am using Vim editor and when I open the my file, I get

  • 0

I am using Vim editor and when I open the my file, I get some stray characters as shown below:

^M^Mtypedef enum

This is not giving any compilation problem. But it looks absurd while I look at code.

Before I deliver the code, I want to remove these stray characters. Please suggest a way.

Additional INFO:

When I am using source insight to open the files, the special characters are not displayed, but the the colours of the variables are being shown wrong, e.g. for an enum type variable, generally source insight shows blue, but because of these stray chars, which are shown as a space, the colour is being shown as green. If I remove the extra space (actually an ^M,) the colour is properly displayed.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T08:25:13+00:00Added an answer on June 10, 2026 at 8:25 am

    dos2unix as suggested by most, did not work for me. Finally i did a simple thing. Copied the whle code, pasted inside a text file. Copied it from there once agin and replaced it again in my source code. This did work..!!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using vim as both Python IDE as well as some markdown editor
Using Git, my editor for commits is Vim. I'm constantly doing a poor job
When I am editing source files using Vim and other editors, sometimes I get
I am using vim 7.x I am using alternate file. I have a mapping
I am using vim editor. I learned that shift (and pressing) ~ converts upper
I am using the Vim editor. Here is my situation: 1111111111111 2222222222222 3333333333333 4444444444444
I try to draw a class diagram using Vim. I fill the editor window
I started learning vim today and installed it using sudo apt-get install vim Now,
I'm learning C++ using Vim as an editor on Windows XP, however I found
I am trying to write a program using python-fuse, but I can't get file

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.