Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-28-2008, 05:49 PM   #1
Registered: Sep 2005
Location: New Jersey, (Which Exit LOL), USA
Distribution: Centos 6.7 Under VMware in Win7
Posts: 473

Rep: Reputation: 34
show line numbers in vi

I know when I edit a file with VI I can set line number on with 'set number'.

How can I set line numbering on as a default so I don't have to key in the set command every time I edit a file with VI?


Suse 11.0
Old 12-28-2008, 05:55 PM   #2
Registered: Sep 2008
Distribution: fedora, gentoo, ubuntu
Posts: 148

Rep: Reputation: 23
Add it to ~/.vimrc


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how do i show line numbers in kdevelop? ereeno Linux - Software 3 12-17-2008 03:16 AM
Show line and column numbers in Vim 7.0 judgex Linux - Desktop 1 08-29-2006 07:06 AM
Grep's line numbers parsed into one line of output. judgex Programming 8 08-14-2006 05:22 AM
Can AbiWord show line and column numbers? MikHud Linux - Software 1 01-13-2006 10:15 AM
fstab entries show non-linear partition numbers Caysho Linux - Newbie 2 01-01-2005 09:25 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:24 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration