Not reading ~/.vimrc

后端 未结 13 2076
借酒劲吻你
借酒劲吻你 2020-12-07 14:41

I have a ~/.vimrc file that vim doesn\'t seem to be reading. There is a file at /etc/vimrc, and it looks like it is using that one.

My understanding is that the one

13条回答
  •  时光说笑
    2020-12-07 15:23

    In case anyone else runs across this issue, and like me realizes .vimrc wasn't read because of sudo, try using sudo -E. It retains your environment for the command, and $HOME will point to your own home dir. Note this may not work in environments where /home is mounted with rootsquash.

提交回复
热议问题