Remove ^M character with VI
To remove ^M’s from a file, type the following: :%s/[ctrlkey+v and ctrl-key+M]//g The actual command is: :%s/^V^M//g
To remove ^M’s from a file, type the following: :%s/[ctrlkey+v and ctrl-key+M]//g The actual command is: :%s/^V^M//g
Whilst using a working project on my new development machine, I came across an issue that stumped me for a while. Microsoft.Win32.Registry.LocalMachine.OpenSubKey(“subkey”).GetValue(“blah”) was failing with the error above, even though it worked perfectly previously and the key was clearly in the registry. After a bit of research I found it to be because I’m now [...]