Comments (5)
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.
I have a mapping m that removes ^M from the file.
Hope this helps!
Amir
from vimrc.
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.
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.
You can do this with <leader>m
with this vimrc
:
Line 318 in 993ed55
from vimrc.
Related Issues (20)
- Unicode Dashes in erb.vim, rst.snippets, and README.markdown
- my_configs.vim doesn't work in Docker Container HOT 1
- Installation script says that it installed even tho vim is not installed. HOT 2
- my_config.vim didn't work? HOT 2
- How do I turn off auto-pairs in my_configs.vim HOT 2
- basic.vim: opening command history (q:) causes error
- HowTo add pluguns HOT 2
- Enter visual block mode with ctrl+v HOT 1
- The “set ruler” in basic.vim is overridden by statusline HOT 1
- Request: adding template `my_configs.vim` HOT 1
- Python 2 support HOT 1
- Missing plugin for GitHub Copilot
- Problem disabling autocomplete quotation marks and brackets HOT 1
- Error occurred when opening markdown files HOT 1
- Automatic addition of another set of [],{},() HOT 2
- Can't Copy To System Clipboard HOT 2
- How to disable certain plugins? HOT 1
- Weird space at start of each line when copying via mouse HOT 2
- Scandinavian letter 'å'
- Issue: Vim Displays "two_right_angle_brackets_need_space" Error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vimrc.