Results 1 to 4 of 4
When I edit a file in gedit and then open it in vim editior from terminal, I see some stray character ^M at the end of each line of the ...
- 08-12-2009 #1Just Joined!
- Join Date
- Oct 2007
- Posts
- 14
gedit and vim
When I edit a file in gedit and then open it in vim editior from terminal, I see some stray character ^M at the end of each line of the file when viewed in vim.
Can any one suggest a fix for this problem?
THanks in advance
- 08-12-2009 #2
Easiest fix is to not use gedit. I do not know of any way to stop gedit from adding the control character to the file. One way to remove them would be to use dos2unix.
- 08-12-2009 #3
I've never experienced this when using gedit. This should only be a problem when editing files that were created on a windows machine.
- 08-12-2009 #4
I was thinking this but because I don't use gedit I couldn't say this for sure. Who know the files might have had this all along.


Reply With Quote
