How to Show Line Number in VIM editor on Linux

Опубликовано: 20 Март 2026
на канале: Happy Ghost
1,170
like

How to Show Line Number in VIM editor on Linux

Vim is a powerful and highly configurable command line editor that comes installed with most Linux operating systems. It offers many useful features for editing and configuration of files. However, some of its useful features are disabled by default. One of them is line numbering. With Vim line numbering features, you can display line numbering at the beginning of each line which comes helpful when modifying the text. Line numbers are also useful in debugging scripts, code reviews, and configuration files. By default, line numbering is disabled.

Vim has the following three line numbering modes:

Absolute line number
Relative line number
Hybrid line number
This article explains how to show or hide line numbers in Vim editor. We will discuss all three modes.