I would like to set up system-wide vi settings.
I know i can setup preferences for vim editor in /etc/vimrc and ~/.vimrc
but i don't think my vi on CentOS7 is reading anything from the vimrc files or locations such as /etc/virc or ~/.virc
vi
I would like to set up system-wide vi settings.
I know i can setup preferences for vim editor in /etc/vimrc and ~/.vimrc
but i don't think my vi on CentOS7 is reading anything from the vimrc files or locations such as /etc/virc or ~/.virc
Best Answer
Poking at POSIX:
And the manpage for
ex
says:So I suppose
/etc/exrc
is your best bet for old-schoolvi
.However,
vi
on CentOS 7 is likely justvim-minimal
, in which case the startup files will still be usingvim
in their name:/etc/vimrc
or/etc/vim/vimrc
.