<div dir="ltr"><br><div class="gmail_extra">On Thu, Aug 21, 2014 at 4:15 PM, Jonathan Poole <span dir="ltr"><<a href="mailto:jpoole@digitaljedi.ca" target="_blank">jpoole@digitaljedi.ca</a>></span> wrote:<br><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word">Have you set the filetype in vim?<div>set ft=sh </div><div><br></div>
<div>does the syntax highlighting work then?</div></div></blockquote><div><br></div><div>It is set.<br><br>If I do "set:", I get (among other things):<br><br>syntax=sh filetype=sh <br></div><div><br></div><div>
So, what matters is indeed set.<br><br>I noticed that the highlighting is different from my user than from root.<br><br>I renamed .vim and .vimrc, but still the highlighting is different.<br><br></div><div>So something is amiss, and I don't know what it is. <br>
<br>But for the purpose of the same problem, both show messed up highlighting.<br><br></div><div>Here is the sample script, with messed up colors inside parens<br><br>#!/bin/sh<br><br>GLOBAL=hello<br><br>func() {<br> LOCAL=hi<br>
echo $GLOBAL<br> echo This goes to stdout<br> echo This goes to sterr >&2<br>}<br><br># This is a first comment, correct comment color<br>(<br> LOCAL=hi<br> # This is a comment, messed up color<br> echo $GLOBAL<br>
echo This goes to stdout<br> echo This goes to sterr >&2 <br>) > /tmp/k 2>&1<br><br>(<br> # This is a comment, messed up color (same color as the <br> # left paren above it, and not the same color of the <br>
# first comment<br> echo $LOCAL<br> func<br>) > /tmp/k 2>&1<br><br></div></div>-- <br>Khalid M. Baheyeldin<br><a href="http://2bits.com" target="_blank">2bits.com</a>, Inc.<br>Fast Reliable Drupal<br>Drupal optimization, development, customization and consulting.<br>
Simplicity is prerequisite for reliability. -- Edsger W.Dijkstra<br>Simplicity is the ultimate sophistication. -- Leonardo da Vinci<br>For every complex problem, there is an answer that is clear, simple, and wrong." -- H.L. Mencken<br>
</div></div>