Article View: news.software.nn
Article #4550Re: Using PICO as nn's editor...
From: Lachlan Cranswick
Date: Thu, 22 Jul 1993 03:03
Date: Thu, 22 Jul 1993 03:03
60 lines
3390 bytes
3390 bytes
jmiller@halcyon.com (James Miller) writes: >>I wrote: >>>I would like to use pico as my editor for nn. I have set the variable >>>"editor" to /usr/local/bin/pico -t but when I go to post two "syntax >>>error" lines appear (not sure if it is nn or pico reporting these), and >>>the cursor is not positioned correctly when pico is started. Pico does >>>support vi-style +linenumber command line cursor positioning. >In <davekCAHqy6.CAH@netcom.com> davek@netcom.com (David Kramer) writes: >>I use pico as my editor for nn without problems. The only thing that is >>different for me is the option "-t". In the man pages for (my version) of >>pico, "-t" isn't even listed as a valid option. Mine is just set to >>"/usr/local/bin/pico" -- no options. What does "-t" do? >In Pico 1.8, (which came with PINE 3.07), the -t option means "tool", >which makes pico work like an integrated editor--small changes such as >when you hit ^X it automatically saves the datafile and returns you to the >host program (no questions). >Does the cursor end up in the proper position (Directly below the blank >line after the news headers) for you? What version of pico do you use? The command to get pico working as your default editor is in the .cshrc file - put the line (case sensitive) setenv EDITOR /usr/local/bin/pico Pico 1.7 uses the -t option as well (this is the version we have), but you have to be wary of it because the setenv works for all pico sessions. Most users here don't enable the -t option for nn as [ctrl] X now always saves on exit - even when editing files from the command line. To use the -t option always, put the following in .cshrc file:- setenv EDITOR '/usr/local/bin/pico -t' (red roses to Barbara in the USA for originally helping me with this problem ages ago) What are the differences between pico 1.7 and pico 1.8 - is it worth the bother of ftping and recompiling? We use nn version 6.4.16 Kim F. Storm, 1991. Is there anyway to restrict the -t option to only work with nn. The man page implies the setenv EDITOR has to be set globally to apply to nn. Hope this helps? Lachlan. Disclaimer :- No flames please - I use vi - but that doesn't mean everyone else is sick in the head and has to!! -- Lachlan Cranswick - CSIRO _--_|\ lachlan@dmp.CSIRO.AU "Blessed Division of Mineral Products / \ tel +61 3 647 0367 are the PO Box 124, Port Melbourne \_.--._/ fax +61 3 646 3223 Cheesemakers" 3207 AUSTRALIA v "Eat Judge Boot!" - J. Dredd.
Technical Details
Message-ID:
<1993Jul22.030312.24179@dmp.csiro.au>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmd.de!xlink.net!howland.reston.ans.net!ux1.cso.uiuc.edu!vixen.cso.uiuc.edu!sdd.hp.com!saimiri.primate.wisc.edu!caen!batcomputer!munnari.oz.au!mel.dit.csiro.au!dmp.csiro.au!lachlanReferences:
<22hv1r$eoj@nwfocus.wa.com> <davekCAHqy6.CAH@netcom.com> <22ir7j$h45@nwfocus.wa.com>Show Full Headers
Complete Article Headers
Message-ID: <1993Jul22.030312.24179@dmp.csiro.au> Subject: Re: Using PICO as nn's editor... Date: Thu, 22 Jul 1993 03:03:12 GMT From: lachlan@dmp.csiro.au (Lachlan Cranswick) References: <22hv1r$eoj@nwfocus.wa.com> <davekCAHqy6.CAH@netcom.com> <22ir7j$h45@nwfocus.wa.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmd.de!xlink.net!howland.reston.ans.net!ux1.cso.uiuc.edu!vixen.cso.uiuc.edu!sdd.hp.com!saimiri.primate.wisc.edu!caen!batcomputer!munnari.oz.au!mel.dit.csiro.au!dmp.csiro.au!lachlan Newsgroups: news.software.nn Organization: CSIRO Division of Mineral Products, Melbourne, AUSTRALIA Lines: 60