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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In