Linux vim: Show/Hide the number of lines

Other language site
ja ja
Google Translate
  • -

    シェア
  • ---

    LINEで送る
  • -

    はてなブックマーク
    ブックマーク
  • -

    pocket
  • -

    rss
programing image

Set display / non-display of line number in vim command mode.

The command mode is an operation that can be entered at the lower left of the editor by pressing the Esc key and pressing the colon ':' when opening with vim.

Use the set command.

Display the number of lines

:set number

Let's actually see.

Currently, the number of lines is hidden.

Displays the number of lines.

The number of lines was displayed.

Hide the number of lines

:set nonumber

Let's actually see.

It is the continuation of the previous time.

It hides it where the number of lines is displayed.

The number of lines has been hidden.

 

 

SNS also distributes articles.
Leave a Reply

*

If you like this article, share it!