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

Joe Wennechuk youcanreachmehere at hotmail.com
Wed Sep 3 15:54:17 EDT 2014


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 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://kwlug.org/pipermail/kwlug-disc_kwlug.org/attachments/20140903/a2c466ac/attachment.htm>


More information about the kwlug-disc mailing list