Vim can show and hide line numbers in editor. Here are Vim commands for it.
Show line numbers in vim
After [ESC] enter the following
:set nu // or :set number
Hide line numbers in vim
After [ESC] enter the following
:set nonu // or :set nonumber
Toggle line numbers in vim
After [ESC] enter the following
:set nu! // or :set number!