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 '18 at 11:46
  • Yes they are using it
    – Delirium
    Jun 20 '18 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 '18 at 12:24

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)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.