Computing.Net > Forums > Linux > .vimrc location

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

.vimrc location

Reply to Message Icon

Name: aliabbas
Date: October 11, 2004 at 10:41:52 Pacific
OS: Windows XP
CPU/Ram: 1.4 GHz P4/512 DDR
Comment:

where is .vimrc file located in linux

Ali Abbas



Sponsored Link
Ads by Google

Response Number 1
Name: Synapse
Date: October 11, 2004 at 14:55:12 Pacific
Reply:

#locate vimrc

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


0

Response Number 2
Name: Wolfbone
Date: October 11, 2004 at 15:38:06 Pacific
Reply:

.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.



0

Response Number 3
Name: ernie
Date: October 12, 2004 at 12:34:36 Pacific
Reply:

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


0

Response Number 4
Name: Wolfbone
Date: October 12, 2004 at 15:14:28 Pacific
Reply:

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 :)


0

Response Number 5
Name: 3Dave
Date: October 13, 2004 at 09:17:38 Pacific
Reply:

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....


0

Related Posts

See More



Response Number 6
Name: aliabbas
Date: October 14, 2004 at 20:40:16 Pacific
Reply:

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

Ali Abbas


0

Response Number 7
Name: aliabbas
Date: October 14, 2004 at 20:42:29 Pacific
Reply:

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


0

Response Number 8
Name: 3Dave
Date: October 15, 2004 at 02:32:04 Pacific
Reply:

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


0

Sponsored Link
Ads by Google
Reply to Message Icon

Tacacs+ authorization Autologin to Runlevel 3



Post Locked

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


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: .vimrc location

Kernel Tree location in Redhat 8 www.computing.net/answers/linux/kernel-tree-location-in-redhat-8/20230.html

Could not locate remote server www.computing.net/answers/linux/could-not-locate-remote-server/11939.html

linux locate www.computing.net/answers/linux/linux-locate/20478.html