search

Home  >  Q&A  >  body text

My vim under Linux has three vimrcs, what are the differences?

I just revised the question, here it is, I am Linux, I found that there are three vimrcs: /etc/vim/vimrc, /usr/share/vim/vimrc and /usr/share/vim/vimfiles/ vimrc, what's the difference?

过去多啦不再A梦过去多啦不再A梦2742 days ago1043

reply all(4)I'll reply

  • PHP中文网

    PHP中文网2017-05-16 16:44:19

    I guess you may be using vim under win. _vimrc in $VIM (that is, your /vim) is the global configuration file, and _vimrc in $HOME is the current user's configuration file. As for /vim/vimfiles, you don’t need vimrc (usually there doesn’t seem to be one).

    Use the :version command in vim to see the following information:

    reply
    0
  • 滿天的星座

    滿天的星座2017-05-16 16:44:19

    :version Take your time

    reply
    0
  • 怪我咯

    怪我咯2017-05-16 16:44:19

    vim -u /path/to/your/vimrc

    reply
    0
  • PHP中文网

    PHP中文网2017-05-16 16:44:19

    Default configuration files and so on... If you want to use it, you have to create a new ~/.vimrc in the home directory and configure it slowly by yourself

    reply
    0
  • Cancelreply