LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-26-2012, 04:46 PM   #1
swamprat
Member
 
Registered: Sep 2005
Location: New Jersey, USA
Distribution: Centos 7 , Linux Mint 18.1 Under VMware in Win7
Posts: 494

Rep: Reputation: 34
A system wide .exrc file.


A system wide .exrc file.

I would like all user who use the vi editor on my system to have line number shown by default instead of using the :set num command when editing a file.

Is there any place in the system where I can create a vi defaule setting so the vi editor will always have number presented when the vi editor is used instead of creating a .exrc file for each user.

Is there a system wide .vimrc. I using CentOS 6.2

thanks
 
Old 04-26-2012, 07:53 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,812
Blog Entries: 1

Rep: Reputation: 259Reputation: 259Reputation: 259
Typically this is found at /etc/vimrc.
 
  


Reply


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
[SOLVED] Partition Proxy: System Wide File Read/Write Redirection steampunk Linux - Newbie 5 01-24-2012 05:19 PM
Edit system wide kmenu as system administrator. okos Linux - Newbie 3 06-22-2009 10:02 PM
.exrc for vim? microsoft/linux Debian 7 03-16-2005 10:32 PM
Problems with system-wide file permissions hexadevil Linux - Newbie 2 05-30-2004 07:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:55 AM.

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