March 03, 2005
Ever wanted `less´ to show syntax highliting?

I'm running Fedora Core, but I expect this tip to work on most other newish installatios, too.

Add the following line in your .bashrc file:

alias less='/usr/share/vim/vim63/macros/less.sh'

Then you can see shell scripts, perl, config files, C source code, makefiles, and almost anything in color.

And whaddayaknow, even D sources!

Those not used to vi or vim need not worry, this hack keeps the normal `less´ keystrokes.
March 03, 2005
Georg Wrede wrote:
> Ever wanted `less´ to show syntax highliting?
> 
> I'm running Fedora Core, but I expect this tip to work on most other newish installatios, too.
> 
> Add the following line in your .bashrc file:
> 
> alias less='/usr/share/vim/vim63/macros/less.sh'
> 
> Then you can see shell scripts, perl, config files, C source code, makefiles, and almost anything in color.
> 
> And whaddayaknow, even D sources!
> 
> Those not used to vi or vim need not worry, this hack keeps the normal `less´ keystrokes.

Nifty trick! I'll give it a try.  Thanks!

- JJR