I use the Windows as my main os, and the putty link to a Ubuntu. When I copy a string in Windows and paste into the putty bash command line I always get a wave mark at the head of the string. Why's that?
But if I paste the same string when I enter vim in the putty, the string shows fine without the wave mark. How to fix it?
Why I paste the string into the bash command line in the putty window I always get a wave mark at the head of the string?
304 Views Asked by Lee At
1
I know the reason when I use the shift + insert. The text pasted in the putty will get a
~at the head of the string.But if you use ctrl + v the
~will not show out.shift + insertseems to be a special mark in the putty. If you make you clipboard empty just pressshift + insin the putty window you will get only~. 1221105902.pngBut sometimes
Ctrl + vwill trigger other things (like the block-wise visual in vim). So you can use AHK in windows. Now I use theAHKto imitate the keystrokeshift + insertAnd the code should be like this:
hope this will be useful to you~