2012-10-25 38 views

回答

8

以下順序應該做的伎倆

ggw<C-v>G$ 

其中

gg -- Goes to top of file 
w  -- skips one word 
<C-v> -- starts visual block select 
G  -- selects until end of file 
$  -- selects to end of each line 
+0

'gg'去緩衝區的頂部,'0'進入行的第一列。 ***編輯***哦,好吧,當我寫這篇評論時,你改變了它。 – romainl

+0

@romainl - 我抓住它* jit * 。 –

+0

謝謝你,'$'是有幫助的。 – user805627

2

切換到Vim中Visual Mode由在提示

地方按v的至select

使用ctrl+v選擇一個區塊進行復制

然後單獨列將被選中並複製單獨所需的文字和可以抽出吧:)

Please refer the link here

+0

它不起作用,因爲'ccc'比另外兩行短。 – user805627