Re: [dwm] uxterm - no syntax highlighting in "vi"

From: James Turner <james_AT_bsdgroup.org>
Date: Tue, 7 Aug 2007 13:21:44 -0400

On Tue, Aug 07, 2007 at 10:57:40AM -0600, A A wrote:
> Greetings everyone!
>
> I'd like to write a script which will open up a bunch of uxterms & vim but
> for some reason I don't get any colors? I've check all environment
> variables and in vim "syntax on" won't work.
> Anyone have any ideas or is there a better to do this?
>
>
> #get file list
> #open all files with:
>
> uxterm -bg '#000000' -fg '#eeeeee' -cr '#ffffff' +sb -e vim SOMEFILE (perl,
> c++, etc...)
>
>
>
>
>
> Thanks everyone!
>
>
> Regards,
> -Al

You need to do something like uxterm -e bash -l -c vim SOMEFILE. This
will start bash as a login shell and then execute vim within it, which
should provide you with syntax hilighting.

-- 
James Turner
BSD Group Consulting
http://www.bsdgroup.org
Received on Tue Aug 07 2007 - 19:22:16 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:48:05 UTC