Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides https://forum.ivorde.com/ |
|
Vi/Vim - Show line numbers in vi or vim https://forum.ivorde.com/vi-vim-show-line-numbers-in-vi-or-vim-t38.html |
Page 1 of 1 |
Author: | LaR3 [ Thu Oct 01, 2009 5:45 am ] |
Post subject: | 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; |
Page 1 of 1 | All times are UTC - 5 hours [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |