Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • In addition to change the background color of the line numbers, I use set numbercolor ,normal Commented Apr 5, 2019 at 22:24
  • It may be preferable to store the set linenumbers in /home/<user>/.nanorc as a user preference instead. Commented Oct 22, 2020 at 14:32
  • I like this but it should be noted that when you copy and paste multiple lines, the line numbers will also copy and paste. Commented Mar 28, 2021 at 19:30
  • The version is mandatory, since there's no option linenumbers in v2.7.0, and its existence in file ~/.nanorc will result in error: Unknown option "linenumbers". Was it so unusual to have line sequential numbers at the times of this version? Commented Aug 12, 2024 at 15:55