March 03, 2005 Linux tech tip | ||||
---|---|---|---|---|
| ||||
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 Re: Linux tech tip | ||||
---|---|---|---|---|
| ||||
Posted in reply to Georg Wrede | 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
|
Copyright © 1999-2021 by the D Language Foundation