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

FAQ
It is currently Mon Nov 18, 2019 3:33 pm


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

Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:
Font size:
 
Font colour
Options:
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:
Code:
:set number


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


Post your comments;
Jump to:  
News 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 ]



phpBB SEO