Search Results

Search: Posts Made By: julesinbath
17,580
Posted By julesinbath
Removing the ^M character in VI
Hello,

I am attempting to remove all the ^M characters in a file in VI.

The command I am using is

:1,$s/^V^M//g

but it doesn't work, saying 'substitute pattern match failed'.

Any ideas...
193,222
Posted By julesinbath
Thanks for the info, the only one that exists is...
Thanks for the info, the only one that exists is the one that I created:
$HOME/.exrc

vi isn't reading it when it starts up.


btw, is exrc an acronym?
193,222
Posted By julesinbath
I'm running in a bash environment.
I'm running in a bash environment.
193,222
Posted By julesinbath
After creating the .exrc file in my $HOME dir... ...
After creating the .exrc file in my $HOME dir...

I managed to get vi to read the .exrc file by using the :'source .exrc' command.

But is there a way you can get vi to read it automatically?
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 11:22 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy