GithubHelp home page GithubHelp logo

Comments (5)

tdwebste avatar tdwebste commented on July 24, 2024

Some more information please,

What operating system are you running?
What do you see when you?

cat "filename"
cat -evt "filename"

Can you please attach one line as an example?
The second cat will show me the control char in a readable form
By compairing the first and second cat, I can tell what is a control char and what is a printable char.

Thx

from vimrc.

amix avatar amix commented on July 24, 2024

I have a mapping m that removes ^M from the file.

Hope this helps!

Amir

from vimrc.

ericntd-legacy avatar ericntd-legacy commented on July 24, 2024

In the end, I decided to retyped the script, it didn't take that long.

I believe this issue emerged because someone else in my team who has access to the same script tried to view/ edit it using Notepad++ in Windows while I was using Fedora all that while.

The issue may not have to do with your vimrc config at all. Sorry for the trouble and thanks for your attention!

from vimrc.

loonies avatar loonies commented on July 24, 2024

The problem is probably with Unix/Windows line endings. Simple $ dos2unix /path/to/file fixes the problem.

^M character is entered by CTRL+v, CTRL+m.

Hope that helps next time :)

from vimrc.

alphaCTzo7G avatar alphaCTzo7G commented on July 24, 2024

You can do this with <leader>m with this vimrc:

" Remove the Windows ^M - when the encodings gets messed up

from vimrc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.