fedora系统下装了 vim 后,默认情况下,vi 不过是 vim 的 alias,但在 root 权限下是 /bin/vi,从而没有读取 vimrc 。
简单粗暴的解决方法是把 root 权限下的 vi 设为 vim 的软链接:
$ sudo mv /bin/vi /bin/vi-bak
$ sudo ln -s /usr/bin/vim /bin/vi
ppt.cc/fKlBax ppt.cc/fwlgFx ppt.cc/fVjECx ppt.cc/fEnHsx ppt.cc/fRZTnx ppt.cc/fSZ3cx ppt.cc/fLOuCx ppt.cc/fE9Nux ppt.cc/fL5Kyx ppt.cc/f71Yqx tecmint.com linuxcool.com linux.die.net linux.it.net.cn ostechnix.com unix.com ubuntugeek.com runoob.com man.linuxde.net ppt.cc/fwpCex ppt.cc/fxcLIx ppt.cc/foX6Ux linuxprobe.com linuxtechi.com howtoforge.com linuxstory.org systutorials.com ghacks.net linuxopsys.com ppt.cc/ffAGfx ppt.cc/fJbezx ppt.cc/fNIQDx ppt.cc/fCSllx ppt.cc/fybDVx ppt.cc/fIMQxx
$ sudo mv /bin/vi /bin/vi-bak
$ sudo ln -s /usr/bin/vim /bin/vi
No comments:
Post a Comment