[comp.editors] Vi bashing [was: CRISP

kevin@ttidca.TTI.COM (Kevin Carothers) (03/15/89)

>1. Vi has great problems in moving text around. If you want to delete
>   a block of text you usually have to count lines. You can use
>   the registers of vi to mark the block and then cut the
>   text - but you usually make a mistake and have to rely on
>   the U or u commands to get it right.

I am continuously amazed at the lack of knowledge about Vi some of the 
people who post to this newsgroup display!

NO, you DO NOT have to count lines! 
Quit posting for a minute and watch my fingers:

1.  Mark the beginning and end of your block of text 
    Lets say the beginning is register "a", and the end is "b".

2.  Enter the following command:
    :'a,'bw !wc -l
           ^
           +---- This space is very important.


If you don't like Vi, fine. 
Just don't post untrue junk about it.

Hope this adds to the discussion
=========================================================================
Kevin Carothers   !{csun,psivax,rdlvax}!ttidca!kevin

:wq!

adamm@necis.UUCP (Adam Moskowitz) (03/17/89)

In article <4048@ttidca.TTI.COM>, kevin@ttidca.TTI.COM (Kevin Carothers) wrote:
< I am continuously amazed at the lack of knowledge about Vi some of the 
< people who post to this newsgroup display!
< 
< NO, you DO NOT have to count lines! 
< Quit posting for a minute and watch my fingers:
< 
< 1.  Mark the beginning and end of your block of text 
<     Lets say the beginning is register "a", and the end is "b".
< 
< 2.  Enter the following command:
<     :'a,'bw !wc -l

Why bother with all the extra work? Mark the beginning of the block with
"ma", go to the end of the block and type "d`a" and voila! Now go to where
you want this block of text to be and type "p". No counting lines, only one
mark, no extra processes. Sheesh, talk about "lack of knowledge"! semi :-)
-- 
Adam S. Moskowitz	            ...!(backbone)!{necntc,encore}!necis!adamm

          "To err is human; to forgive is simply not our policy."