我測試與我的腳本代理,看起來像: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