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

FAQ
It is currently Wed Oct 18, 2017 4:59 pm


Tutorials applicable on more than one Unix/Linux OS and shell scripts: ssh / openssl / protocols.

Author Message
LaR3
  Post  Post subject: Vi/Vim - Show line numbers in vi or vim  |  Posted: Thu Oct 01, 2009 5:45 am

Joined: Mon Aug 03, 2009 4:55 pm
Posts: 19

Offline
 

Vi/Vim - Show line numbers in vi or vim

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;

_________________
Humble user
http://www.ivorde.ro





Top
Display posts from previous:  Sort by  
E-mail friendPrint view

Topics related to - "Vi/Vim - Show line numbers in vi or vim"
 Topics   Author   Replies   Views   Last post 
There are no new unread posts for this topic. VI / VIM: Show end of the lines

debuser

0

1395

Thu May 13, 2010 8:03 am

debuser View the latest post

There are no new unread posts for this topic. Converting ^M characters to Unix new line

debuser

0

438

Sun Jul 18, 2010 11:20 am

debuser View the latest post

There are no new unread posts for this topic. Openssl s_client command line: connect and diagnose an https server

LaR3

0

2801

Wed Aug 26, 2009 3:18 am

LaR3 View the latest post

 

Who is online
Users browsing this forum: No registered users and 0 guests
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
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