An Introduction to Display Editing with Vi [docs.freebsd.org]
A paper about Vi by the original author of Vi, Bill Joy.
A paper about Vi by the original author of Vi, Bill Joy.
David Rayner (zzapper) 15 Years of Vi + 3 years of Vim and still learning
most useful (IMO):
i -insert in place
a - insert after character (append)
:q - quit
:w - write file
:q! - quit without saving
/ - search
:%s/pattern/replace/g - replace all with regex
y$ - copy to end of line
p - paste
#dd - delete next # lines
I started this tutorial for one simple reason - I like regular expressions. Nothing compares to the satisfaction from a well-crafted regexp which does exactly what you wanted it to do :-). I hope it's passable as a foreword.