syntax highlighting in vim

Eric Blake ebb9@byu.net
Wed Nov 23 15:19:00 GMT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Williams, Gerald S (Jerry) on 11/23/2005 7:18 AM:
> Alireza Ghasemi wrote:
> 
>>I have the same problem about ls too. Do they
>>ever support syntax highlighting ?
> 
> 
> For ls, this might work for you:
> 
>   alias ls='ls -color=auto '

Actually, a better spelling would be
alias ls='ls --color=auto'

The long option must be spelled correctly.  The use of a trailing space in
the alias controls whether the next word on the command line will also be
subject to alias expansion; it is more useful for situations like
alias nice='nice '
so that "nice ls" will pick up that ls is also an alias.  But since ls
isn't usually followed by another program name to execute, you usually
don't see people aliasing ls with a trailing space.

- --
Life is short - so eat dessert first!

Eric Blake             ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDhHv384KuGfSFAYARAqWyAKDDAxXgf0+LzvCgoVAKzN2x1ziKOwCeNwA9
eofVcQL7DMAi/NictGTDnTA=
=hfPW
-----END PGP SIGNATURE-----

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list