Friday, November 10, 2017

Change control characters

Hi,
I am using Vim 7.4 on Windows. I used to be able to do replace control charters like ^M in command mode by entering ^V and followed by ^M so that the command
:%s/^V^M/\r/
will fix the carriage return issue of a file.

The character ^ is the CTRL key, therefore the string :%s/^V^M/\r/ above is actually shown as
:%s/^M/\r/ when I do this on Mac, which is also 'vim'.
However, on Windows the CTRL-V key always 'pastes' whatever is in the cut buffer instead of entering control charter editing mode no matter which mode I am in.

Is this a bug or is there something not set properly.

Alex

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: