Sometimes when editing configuration files or for quick debugging on a server, you use vim. And you wish it could show line numbers.
Actually it can. Here’s how:
In command mode, type
set number
.
Yup, that’s it.
Sometimes when editing configuration files or for quick debugging on a server, you use vim. And you wish it could show line numbers.
Actually it can. Here’s how:
In command mode, type
set number
.
Yup, that’s it.