Friday, October 2, 2009

Yank all lines in Vim

3 methods.

# 1. Highlight select all lines before yanking
:0, SHIFT + v, G, y

# 2. State range to yank: G - the last line
:0,Gy

# 3. State range to yank: $ - end of text
:0,$y

No comments:

Blog Archive