In this tutorial you will learn how to show line numbers in Vi. This tutorial shows you how to enable and disable line numbers by doing a transient and also a permanent change.
Code used during this tutorial:
1 2 3 4 5 6 7 8 9 10 11 12 |
# Vi Show line numbers # Transient change :set number :set nu # Do not show line numbers :set nu! # Permanent change vi ~/.vimrc set number |