Originally Posted by ufmale
I am trying to setup a color syntax for vi. I was successfully set it up by creating writing "syntax on" in the .vimrc at the home/user1/ directory.
However, i cannot get it to work for root user. I copy the .vimrc from /home/user1/.vimrc to the /root/ . I am not sure if there is any limitation on using this file for root user? i am using fedora 7.
I apologize if replying to this post after such a long time is considered "bad forum practice" - just wanted to add something in case someone else is looking for the same answer. Besides, I think it contributes to document the solution.
In my case, I am running Debian Squeeze and the system-wide options for VI are located in /etc/vim/vimrc. Just uncomment the line "syntax on" and you're ready to go.
Also, if you want to show line numbers, add "set number" on another line.