Reliable solution to copy/paste Vim macros

516 views Asked by At

enter image description here

Line number 7 shows the paste of a macro I recorded. When I copy/paste it, the following 4 lines is what I get. I know we can replace ^[ character using <ESC>, but thats not just one, there is ^M & that too in many places. It doesn't seem to be a scalable way to get things done. I feel there is a better way to deal with this than by manually replacing the special characters. If anyone is aware of a better solution, please suggest?

0

There are 0 answers