Wrap-up
To wrap up, run though a last sequence of commands to combine some of the things you've learned (see Figure 26):
- To go to the beginning of your document, press the g key twice.
- To delete everything in your file (because you have less than 100 lines), type
100followed by theddcommand. - Press the i key to go into insert mode.
- Type
I am done with this tutorial!. - Press the Esc key.
- Press the y key twice, type 100, and then press the p key.
You've now yelled to your computer 100 times that you're done! Good job; time for a break and a cup of coffee.
Figure 26. You're finished with this tutorial
After working through this tutorial, you should have the knowledge to create and edit files with vi. Experiment with the commands listed throughout this tutorial, and practice them by beginning to use vi as your day-to-day text editor. It will slow you down at first but, in a short time as you memorize the commands and learn when and where to use them, vi can significantly increase your productivity.
Future tutorials in the series will cover shell tricks and tips. In the meantime, keep working with the command line and practicing with vi -- you'll be a power UNIX user in no time!


