金曜日, June 05th, 2009 | 著者:

Well it turns out that the problem 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. 🙂

シェア
カテゴリ: リナックス
あなたはを通してこのエントリへの応答に続くことができる RSSフィード 2.0 フィード. あなたができる 応答を残す, または トラックバック ご自分のサイトから.

1つの応答

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

返信を残す » ログイン