color syntax in vi for root
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. |
Try:
Quote:
|
I don't have the /usr/share/vim/vimrc file,
but there are /usr/share/vim/vim71/ and /usr/share/vim/vimfiles I try to create that file under vim71, but it did not work. |
Quote:
root@localhost~# gvim & then... menu Edit -> Startup Settings type "i" to edit file and feel for typing anything you want |
Quote:
All I did was alias vi to vim, in my .bashrc file, then reload .bashrc vi ~/.bashrc alias vi='vim' (save and exit) (then run) . ~/.bashrc |
Quote:
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. |
All times are GMT -5. The time now is 11:03 PM. |