Home  >  Q&A  >  body text

Can .vimrc .viminfo files be moved?

I usually use debian8 to log in to my debian operating system.
/home/debian8 There are two files under .vimrc .viminfo
Later, in order to facilitate the installation of plug-ins, I created a new directory /home/debian8/.vim
Can I change .vimrc .viminfo Move to /home/debian8/.vim

After testing, the configuration cannot be read normally after moving. Can I change the settings after moving to make this move feasible?
Personally feel that this result
/home/debian8/.vim/.vimrc
/home/debian8/.vim/.viminfo
is better than the following
/home/debian8/. vimrc
/home/debian8/.viminfo

PHPzPHPz2684 days ago619

reply all(2)I'll reply

  • 漂亮男人

    漂亮男人2017-05-16 16:36:05

    Then use -u and -i to specify it every time you start it

    reply
    0
  • 習慣沉默

    習慣沉默2017-05-16 16:36:05

    ln -s /home/debian8/.vim/.vimrc /home/debian8/.vimrc

    reply
    0
  • Cancelreply