Article View: news.software.nn
Article #10844Re: Reading only 3 groups with nn?
From: Aaron W. Hsu
Date: Sun, 10 Aug 2008 16:15
Date: Sun, 10 Aug 2008 16:15
49 lines
3449 bytes
3449 bytes
andrew <andrew@ilium.invalid> writes:
>Aaron W. Hsu <arcfide@sacrideo.us> writes:
>>First thing you should do is just set your environment variable to
>>vim unless you want to use another editor for other programs, in
>>which case "set editor /usr/local/bin/vim" in your init file or the
>>equivalent will work.
>No probs as vim is already set as $EDITOR.
You should try setting and not setting the editor value in your init
file.
>>Secondly, you need to look at where you put your executable utilities
>>when you installed NN, maybe /usr/local/lib or /usr/local/libexec. You
>>are looking for the aux* file. Once you find that file, you will see
>>around line 303 where it decides what options to feed to the program.
>>You'll want to add after line 310:
>> vim )
>> # Vim with width Limit
>> eval $EDITOR '+set tw=72' +%d '%s'
>> ;;
>Changed this and then I was puzzling over why some standard vim commands did
>not work and I eventually realised that I was using vi rather than vim.
>Slackware appears to ship with both which I did not realise up until now.
>I am a little puzzled as to why nn would call vi? I could try a symlink
>from vi --> vim I guess. At the moment it is linked:
It should not be necessary for you to symlink vi to vim, as that script
above was meant to fix that problem. To debug this, you might want to add
in an echo $EDITOR; sleep 10 into the script. The only reason it would
call vi that I can think of is if it can't find any other option. That
is, if the EDITOR variable isn't set properly, then it may default to
vi, which is what ${EDITOR-vi} does in lines 303-310 of aux. If you
add a command to echo and then sleep, you'll get a few seconds to see
exactly what you are calling.
Sincerely,
Aaron Hsu
--
+++++++++++++++ ((lambda (x) (x x)) (lambda (x) (x x))) +++++++++++++++
Email: <arcfide@sacrideo.us> | WWW: <http://www.sacrideo.us>
Scheme Programming is subtle; subtlety can be hard.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Technical Details
Message-ID:
<Ac-dnVu7mdqwiQLVnZ2dnUVZ_h6dnZ2d@giganews.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.20140326.mbox.gz!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local02.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mailReferences:
<umq1n5xqsm.ln2@ilium.andrews-corner.org> <6oKdnROfVZ6I_QPVnZ2dnUVZ_uOdnZ2d@giganews.com> <vug2n5xkdp.ln2@ilium.andrews-corner.org>Show Full Headers
Complete Article Headers
Message-ID: <Ac-dnVu7mdqwiQLVnZ2dnUVZ_h6dnZ2d@giganews.com> Subject: Re: Reading only 3 groups with nn? Date: Sun, 10 Aug 2008 11:15:41 -0500 From: Aaron W. Hsu <arcfide@sacrideo.us> References: <umq1n5xqsm.ln2@ilium.andrews-corner.org> <6oKdnROfVZ6I_QPVnZ2dnUVZ_uOdnZ2d@giganews.com> <vug2n5xkdp.ln2@ilium.andrews-corner.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.20140326.mbox.gz!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local02.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Sun, 10 Aug 2008 11:15:40 -0500 Newsgroups: news.software.nn Organization: Sacrificum Deo Reply-To: arcfide@sacrideo.us User-Agent: nn/6.7.3 Lines: 49 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-Tp8PeNKgnEFCXspCTCX1id0hATHxwATZg2Z0uw0Y33tiKb1Kl8GS9k0qwFkts/fXWnjAZi6w4wgBLaR!y+BCSzC3ZoL7KSik/Uxrb6pSAlv7e9appxekJkELPZtKWtyIcseXOT7p25jKA7gLj2HrUp6hSQ== X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.39