Thursday, June 08, 2006

Linux --- Some vi Commands

Needed vi commands
------------------------------------------------------------------------------------------------
:1,$s/oldstring/newstring/g (from line 1 to $ find and replace globally)
cw changes current word
6x deletes 6 characters
8Y yanks 8 lines into the buffer
ZZ writes and quits
10dd deletes 10 lines


------------------------------------------------------------------------------------------------

No comments: