You are not logged in.

#1 2013-08-18 17:16:22

systemovich
Member
Registered: 2013-05-27
Posts: 20

[SOLVED] No Syntax Highlight for /etc/bash.bashrc in Vim in Terminator

When I open /etc/bash.bashrc with Vim in Konsole, I get syntax highlighting, but when I open it with Vim in Terminator, there is no syntax highligting.

I do get syntax highligting for JavaScript and HTML files in Vim in Terminator.

What could be the problem?

Last edited by systemovich (2013-08-18 18:21:11)

Offline

#2 2013-08-18 17:55:04

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: [SOLVED] No Syntax Highlight for /etc/bash.bashrc in Vim in Terminator

Are you opening the file as root or as your user? Did you su to root or did you use sudo? Root may not have a vim configuration calling for syntax highlighting.

Offline

#3 2013-08-18 18:19:13

systemovich
Member
Registered: 2013-05-27
Posts: 20

Re: [SOLVED] No Syntax Highlight for /etc/bash.bashrc in Vim in Terminator

thisoldman wrote:

Are you opening the file as root or as your user? Did you su to root or did you use sudo? Root may not have a vim configuration calling for syntax highlighting.

Brilliant!
I sudo-ed. Normal user has the highlighting.

Thank you!

Offline

Board footer

Powered by FluxBB