Hacker News new | ask | show | jobs
by shagie 2953 days ago
That package has another excellent way of learning vi commands...

The 'quiz' program had the data set of 'ed' ( https://github.com/vattam/BSDGames/tree/master/quiz / https://github.com/vattam/BSDGames/blob/master/quiz/datfiles... )

    print whole file:1,$p|g/[^|$]/p
So it would print out "print whole file" and you could enter one of:

    1,$p  
    g/^/p
    g/$/p
Hunt is also in that repo.