[kwlug-disc] Vim highlighting problem (was: Capturing output in scripts)

Khalid Baheyeldin kb at 2bits.com
Wed Sep 3 16:03:39 EDT 2014


nano and pico do not have the problem.

Here is a screen shot.

http://i.imgur.com/OUf1xE8.png


On Wed, Sep 3, 2014 at 3:54 PM, Joe Wennechuk <youcanreachmehere at hotmail.com
> wrote:

> So they are behaving as comments though? it is just VIM showing them in
> red? have you looked in emacs?
>
>
> ------------------------------
> Date: Wed, 3 Sep 2014 15:28:55 -0400
> From: kb at 2bits.com
> To: kwlug-disc at kwlug.org
> Subject: [kwlug-disc] Vim highlighting problem (was: Capturing output in
> scripts)
>
>
> Using a pristine Ubuntu Server 14.04, I saw the messed up highlighting.
> This means that my configuration for vim has nothing to do with it.
>
> Here is a script that shows how it is messed up if someone wants to try it
> out.
>
> #!/bin/bash
>
> # We create a function
> do_someting() {
>   # rsync with the following options:
>   rsync -azRxW -e ssh blah blah
> }
>
> # Initialize files
> > $LOG
> > $IP_CURRENT
> > $IP_HOME
>
> (
>   # This comment is not the right color. It is red.
>   do_something
>
>   # This is a comment with a ' in it. Messed up what is after it
> ) > $LOG 2>&1
>
> # Another comment
>
> # Another comment with a 'in it. Restores red color
>
> And here is a screen shot from the pristine 14.04 install.
>
> http://i.imgur.com/CiQamyB.png
>
>
> --
> Khalid M. Baheyeldin
> 2bits.com, Inc.
> Fast Reliable Drupal
> Drupal optimization, development, customization and consulting.
> Simplicity is prerequisite for reliability. --  Edsger W.Dijkstra
> Simplicity is the ultimate sophistication. --   Leonardo da Vinci
> For every complex problem, there is an answer that is clear, simple, and
> wrong." -- H.L. Mencken
>
> _______________________________________________ kwlug-disc mailing list
> kwlug-disc at kwlug.org
> http://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org
>
> _______________________________________________
> kwlug-disc mailing list
> kwlug-disc at kwlug.org
> http://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org
>
>


-- 
Khalid M. Baheyeldin
2bits.com, Inc.
Fast Reliable Drupal
Drupal optimization, development, customization and consulting.
Simplicity is prerequisite for reliability. --  Edsger W.Dijkstra
Simplicity is the ultimate sophistication. --   Leonardo da Vinci
For every complex problem, there is an answer that is clear, simple, and
wrong." -- H.L. Mencken
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://kwlug.org/pipermail/kwlug-disc_kwlug.org/attachments/20140903/832acaea/attachment.htm>


More information about the kwlug-disc mailing list