On Tue, 2005-09-27 at 22:00 +1200, Christopher Sawtell wrote: > On Tue, 27 Sep 2005 20:16, Nick Rout wrote: > > On Tue, 2005-09-27 at 17:51 +1200, Steve Holdoway wrote: > > > And *never* vi /etc/passwd. > > > > It was an example! > Indeed, but what Steve said is _very_ valid none the less, and similarly > *never* vi /etc/group use vigr instead, and for the puppies who are allergic > to vi, both vipw and vigr will default to your 'editor of choice'.
and indeed you probably don't even need to know how to change your editor of choice in a pinch, because you should be able to: EDITOR=whatever vipw > > ZZ Damn! > ohh true, and presumably visudo and crontab -e for similar reasons. And BTW I wasn't saying that vi isn't a useful tool. Just install FreeBSD and try to change anything without vi skills and you'll be rebooting to find that vi cheat sheet! I did think I had read somewhere that some standard mandated that vi should be present on every unix (linux?) install, but it may have been a bad dream... Actually it is a damn good system (in the improved vim version) but you really do need to be forced to use it a few times to get those little keystrokes into your head.
