Saturday, October 13, 2012

vi/vim tips

1.Copy and paste

In normal model:

10yy     --Copy next 10 lines
p           --Paste the content


2. Tab multiple lines

v           -- Go into Visual Mode
shift + direction(h,j,k,l or arrows)    -- select lines
> or <      -- indent or unindent

No comments:

Post a Comment