VIM configuration profile for sh/bash is incorrect

Solution Verified - Updated -

Issue

  • Get a syntax error with BASH shell scritps when editing in VIM. Edit following shell script with vim:

    #!/bin/bash
    echo -e "Enter your name: \c"
    read name
    echo "Your name is $name"
    

Environment

  • Red Hat Enterprise Linux (RHEL) 5.2 (and later)
  • vim-common-7.0.109-6.el5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content