Set line numbers in Vim To dislay line numbers when using Vim you can use the following command: :set number To turn off line numbers: :set nonumber