I wanted to setup global vimrc. But it does not work. I have it setted up in /usr/share/vim/vimrc where I have this config.

colo torte
syntax on

what I am doing wrong if the color scheme is not working for users?

  • Are all users using the same vim installation?
    – Kusalananda
    Jun 20, 2018 at 11:46
  • Yes they are using it
    – Delirium
    Jun 20, 2018 at 11:49
  • strace suggests to me vim looks at /etc/vimrc (only) for global configuration, but I don't know enough about vim to tell if that should load /usr/share/vim/vmrc? Jun 20, 2018 at 12:24

1 Answer 1


Red Hat has the global resource file in /etc/vimrc.

It can verfied with:

$ strace -eopen -o log vim test
$ grep vimrc log
open("/etc/vimrc", O_RDONLY)            = 3
open("/root/.vimrc", O_RDONLY)          = -1 ENOENT (No such file or directory)
open("/root/_vimrc", O_RDONLY)          = -1 ENOENT (No such file or directory)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .