14

No Syntax Highlighting with sudo vim [solved]

view full story
linux-howto

http://crunchbanglinux.org – Hoping someone might help me sort this out.I don't get any syntax highlighting in vim when I use it with sudo. For example, I have just installed nginx and need to edit the configuration files. When I run vim /opt/nginx/conf/nginx.conf from the terminal, I get a nicely highlighted config file which I can't save. When I run sudo vim /opt/nginx/conf/nginx.conf I get a config file with no highlighting that I can't save :/ (HowTos)