I want to be able to open a file using vim but immediately have it execute this command %s/^M/\r/g
I am trying to do this with the:
nvim path/to/file -c "%s/^M/\r/g"
nvim says that the pattern ^M is not found but they are in the file. How can I pass the correct character in the command line?
I realise that c-vM works if you are in vim but I am trying to replicate the c-vM character in the terminal.