.vimrc location

Score
0
Vote Up
October 11, 2004 at 10:41:52 Pacific
Specs: Windows XP, 1.4 GHz P4/512 DDR

where is .vimrc file located in linux

Ali Abbas


Reply ↓  Report •


#1
Vote Down
Score
3
Vote Up
October 11, 2004 at 14:55:12 Pacific

#locate vimrc

"The path to enlightenment is /usr/bin/enlightenment"


Reply ↓  Report •

#2
Vote Down
Score
6
Vote Up
October 11, 2004 at 15:38:06 Pacific

.foorc = runtime configuration file for programme "foo" located in user's home directory.

/etc/foorc (if it exists) = global (all users) runtime configuration file for programme "foo", overridden by .foorc, if it exists.

Suggesting to someone who cannot find an 'rc' file that '#locate vimrc' is a useful command is not very helpful.



Reply ↓  Report •

#3
Vote Down
Score
0
Vote Up
October 12, 2004 at 12:34:36 Pacific

And yet, the question was answered. In fact,
the queastion was answered in such a way as
to permit any user to locate any file under
any distribution since the vimrc file may
reside in verying locations on various
distributions. I liked the answer :)

Ernie [ewilcox@buckeye-express.com]
ICQ 41060744
Registered Linux User 247790


Reply ↓  Report •

#4
Vote Down
Score
3
Vote Up
October 12, 2004 at 15:14:28 Pacific

Really? - typing in a comment at the command line has never managed to locate a file for me, and a distro that fails to conform to the FHS in such an extreme manner is rare (I've never seen one) and may well not install [s]locate by default either :)


Reply ↓  Report •

Related Posts

#5
Vote Down
Score
1
Vote Up
October 13, 2004 at 09:17:38 Pacific

Rather than (s)locate whose database may not be up to date:
# find / -name .vimrc

Although Wolfbone's answer is probably the most useful one....


Reply ↓  Report •

#6
Vote Down
Score
0
Vote Up
October 14, 2004 at 20:40:16 Pacific

i still havent find the .vimrc file
not in etc, not in /usr/bin
I am using Sun Linux

Ali Abbas


Reply ↓  Report •

#7
Vote Down
Score
0
Vote Up
October 14, 2004 at 20:42:29 Pacific

even when i tried the find command I dont find anything ..yea I do use Vi editor and I have found .viminfo file but not .vimrc file

Ali Abbas


Reply ↓  Report •

#8
Vote Down
Score
1
Vote Up
October 15, 2004 at 02:32:04 Pacific

The .vimrc file should be in your home directory if you have one. I am an emacs user myself but would guess that vim uses a global /etc/vimrc which can be installed as root. This file can then be copied to a users home directory and renamed to .vimrc which can then be edited to suit the individual users needs.

On my system I have both a /usr/share/vim/vim63/vimrc_example.vim and a /usr/share/vim/vim63/gvimrc_example.vim which can be used as templates. If you do not have example ones on your system here's one on the net:
http://www.stripey.com/vim/vimrc.html


Reply ↓  Report •

Reply to Message Icon Start New Discussion
« Tacacs+ authorization Autologin to Runlevel 3 »

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.

Ask the Community!
Describe your Problem
Example: Hard Drive Not Detected on My PC