0

Running a minimal ISO of CentOS_7

I've tried writing a .sh script using vi but can't get syntax highlighting to work.

Pressing escape and typing :syntax on as shown in articles like this one are not working.

The files I'm creating and editing are definitely .sh files and all have #!/bin/bash at the start of the first line.

What am I missing?

1 Answer 1

3

I think that your problem is your vim version: probably doesn't include syntax highlighting; try this:

yum install vim-enhanced

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.