Re: vi cheat sheet

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Jonathan Hohle
Date:  
To: plug-discuss
Subject: Re: vi cheat sheet
thanks guys, i gave myself a little time and a small task and finally
learned Vi. not my favorite editor, but at least i know how to use it
now. i'll keep using it for a while to get some motor memory, but
will probably go back to nano whenever possible.

Jon
<><


On Wed, 2 Feb 2005 22:00:18 -0600, Jerry Davis <> wrote:
> 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

>



--
Jon
<><
---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss