Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides

It is currently Tue Jun 02, 2020 10:03 pm

Message body:
Enter your message here, it may contain no more than 60000 characters. 

:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:
Font size:
Font colour
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON
Disable BBCode
Disable smilies
Do not automatically parse URLs
Confirmation code
Confirmation code:
In an effort to prevent automatic submissions, we require that you enter both of the words displayed into the text field underneath.

Topic review - Vi/Vim - Show line numbers in vi or vim
Author Message
Post subject: Vi/Vim - Show line numbers in vi or vim  |  Post Posted: Thu Oct 01, 2009 5:45 am
Vi/Vim editor has a handy option when it comes to editing a file: line numbers. This shows how to turn on and of the display of line numbers in vi or vim editors

Vi / vim has two working modes: Command mode and INSERT mode(-- INSERT --). You can switch between them, using the ESC key. Following commands require you to bee in vi / vim command mode.

While editing a document, type the following to turn on line numbers in vi / vim:
:set number

Same for turning off the line numbers in vi / vim:
:set nonumber

Post your comments;
Jump to:  
cronNews News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list

Delete all board cookies | The team | All times are UTC - 5 hours [ DST ]