Originally Posted by j_jerry
To copy the current line use yy , copy a word yw , copy 4 words y4w like that
to paste what you've copied use p or P
Translated, this means that, unless you are either a masochist or a computer software historian, you should choose a modern text editor.
I can use an abacus that is ingeniously connected to a computer, but I would prefer to use something a bit more up-to-date. By the same reasoning I would prefer any editor -- any editor
-- over vi. My antique program Apple Writer, which ran on the Apple II and was terribly limited by modern standards, easily outperformed vi.
There are dozens of programs more usable than vi, whose command set was originally designed to avoid an unnecessary waste of paper at a time when all computer transactions were conducted on a paper teletype terminal, at great cost and expenditure of time. (I was obliged to use vi while working on the NASA Space Shuttle in the early 1970s.)
The appearance of the first glass terminal ought to have marked the end of vi's useful life, but no ... not even close. At a time when there are fantastic free text editors that know a mouse is something other than a nuisance rodent, a small clique of technological throwbacks patiently enter the archaic commands required of vi, as though the last forty years had not taken place.
When people ask for useful vi commands, I am tempted to reply:
# rm -f `whereis -b vi`
Newbies: the above is a joke, don't type it.