0

The vim version on my faculty cluster has a great feature in highlighting the syntax for Linux standard configuration files (like /etc/network/interfaces or httpd.conf).

I've tried a lot of settings and options in the way to obtain the same behavior, but nothing helps.

Any ideas?

Thank you! :)

  • 1
    If you can detail what you tried it could be an help for the reply. – dervishe Jan 9 '16 at 15:13
  • I tried to enable syntax highlight, update vim, install it from multiple sources that was promising a very complete addons stack to be included. – Filip Ion Dorinel Jan 9 '16 at 15:16
  • 1
    did you tried syntax on in your ~/.vimrc ? – dervishe Jan 9 '16 at 15:19
  • 1
    Possibly wider vi audience at vi.stackexchange.com – Jeff Schaller Jan 9 '16 at 15:30
  • @dervishe you should submit that as an answer! – Harv Jan 9 '16 at 17:39
0

Put: syntax on in your ~/.vimrc file

  • Already did that. It dosen't work for as much files as the one on the faculty cloud. – Filip Ion Dorinel Jan 10 '16 at 20:42
  • You can look into your /usr/share/vim/vim74/syntax directory. Here you can find the coloration syntax file for each supported format. Perhaps some are missing. – dervishe Jan 10 '16 at 23:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.