Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Off on a tangent' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Off on a tangent
Authored by: pmccann on Jun 22, '02 03:43:37AM

In the same sort of situation that the original poster mentioned it might be worth remembering the following lovely little trick implemented by "less". (I always prefer less over more.)

% less /Users/pmccann/whatever

[[Oops, just realised that I need to change something in that file, not just look at it.]]

Type the letter 'v'. Bingo, you've got the file in question in vi. If you're sitting there saying "yuck, I hate vi" then simply set the "EDITOR" environment variable and less will use that application when you enter 'v'. Suppose you're using tcsh as your shell and wish to have pico as your editor of choice. Simply enter

% setenv EDITOR pico

and you're away. If you'd like this to be more permanent you should probably add that line (without the prompt shown above!) to your .login file in your home directory.

Cheers,
Paul



[ Reply to This | # ]