Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


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

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

Old 04-26-2012, 08:53 PM   #2
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.


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 06:19 PM
Edit system wide kmenu as system administrator. okos Linux - Newbie 3 06-22-2009 11:02 PM
.exrc for vim? microsoft/linux Debian 7 03-16-2005 11:32 PM
Problems with system-wide file permissions hexadevil Linux - Newbie 2 05-30-2004 08:54 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:56 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