Re: vi cheat sheet

Kezdőlap
Csatolmányok:
Üzenet email-ben
+ (text/plain)
Üzenet törlése
Válasz az üzenetre
Szerző: Jerry Davis
Dátum:  
Címzett: plug-discuss
Tárgy: Re: vi cheat sheet
I would add the mark command too.

at any line do m followed by a letter and you get a mark
then you can always go back to that mark by using the ' followed by that same
letter.

also you can use the goto mark ' to do command line thingies.

for instance open up a file and goto a line somewhere and type ma
goto another line further down and type mb

to goto the 'a' mark then just type 'a, similarly goto mark b by typing 'b

to yank the lines from mark a to mark b for instance you can do :'a,'b yank
etc.

I use this all the time and it is easy to remember.

Just my $0.02,
Jerry


<snip>

-- 
Registered Linux User: 275424
Today's Fortune: They are ill discoverers that think there is no land, when 
they can see
nothing but sea.
        -- Francis Bacon
---------------------------------------------------
PLUG-discuss mailing list - 
To subscribe, unsubscribe, or to change  you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss