where is .vimrc file located in linux Ali Abbas
#locate vimrc "The path to enlightenment is /usr/bin/enlightenment"
.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.
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
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 :)
Rather than (s)locate whose database may not be up to date:
# find / -name .vimrcAlthough Wolfbone's answer is probably the most useful one....
i still havent find the .vimrc file
not in etc, not in /usr/bin
I am using Sun LinuxAli Abbas
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
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
| « Tacacs+ authorization | Autologin to Runlevel 3 » |