我测试与我的脚本代理,看起来像:Vim:如何在文本的不同列后粘贴一列文本(来自剪贴板)?
$proxy = "http://name:[email protected]:80";
$proxy2 = "http://name:[email protected]:80";
$proxy3 = "http://name:[email protected]:80";
...
$proxy100 = "http://name:[email protected]:80";
我通过电子邮件获得新的代理所以我复制新的代理和Vim
插入它,而不是旧的:
"http://name:[email protected]:80";
"http://name:[email protected]:80";
"http://name:[email protected]:80";
...
"http://name:[email protected]:80";
权利知道我在做它,因为这页How do I paste a column of text after a different column of text in Vim?
使用视觉块(CTRL-v)上被描述削减信列。然后移至号码列的第一行 。移动到最后并创造一个空间。 然后粘贴字母列。
我很好奇,如何在没有额外步骤的情况下完成,只需从剪贴板粘贴数据?
Vim可能不适合这项工作。您应该从电子邮件中复制代理并将其粘贴到文本文件中,并使用脚本处理该文件。 – romainl