週五, June 05th, 2009 | 筆者:

Well it turns out that the 問題 is a little more subtle than that. It is only the user that does not have syntax highlighting.

You see, vim does have syntax highlighting but vi and vim are different binaries. A shell startup script only aliases vi to vim if the user id is higher than 100 – which excludes root. The simplest workaround is to just add an explicit alias to root’s .bashrc at /root/.bashrc :

alias vi='vim'

run the command manually or just log in again toactivatethe alias.

Btw, I’m starting to like via lot. For a long time it made no sense to mebut now I am found. 🙂

分享
類別: linux下
您可以通過,這是一條任何反應 RSS 2.0 飼料. 您可以 留下回應, 或 引用通告 從您自己的網站.

一個響應

  1. 1
    克雷格 

    I couldn’t agree with you more. I moved over from nano about 13 個月前, and haven’t looked back.

發表評論 » 登錄