🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #171442

Re: [slrn] external editor and sorting

#171442
From: The Ohmster
Date: Wed, 17 Aug 2005 00:51
62 lines
3680 bytes
On 2005-08-14, SINNER <99nesorjd@gates_of_hell.invalid> wrote:
> * The Ohmster wrote in news.software.readers:
>
> [...]
>
>> A spell checker would be cool for vi. pico does come with a spell
>> checker.
>
> Find a package called spellutils, I know there is a mandr* rpm and a deb
> package as I use it today. Install it and aspell and then add something
> like this (right from the spellutils DOC) to ~/.vimrc :
>
> " Spelling Macros
>  map <f8> \1\2<CR>:e! %<CR>
>  map \1 :w!<CR>
>  map \2 :!newsbody -qs -n % -p aspell check \%f<CR>
>
> Now F8 will spell check only original text. It works like a champ.
>
> [...]

Sinner! OMFG, it works dude, it works!!!

I added your macro to my ~/vimrc file and it works like a freaking
charm! I press esc to get out of insert mode and then press <F8> and
holy crap, I get this fabulous spell checking window that highlights all
misspelled words, offers suggestions, and lets you ignore or whatever
you want. Then when you are done spell checking, you end up back in vi
again.

I tried a different term program than the one that I was using. I use
SecureCRT and that does a great job, I get ANSI color with it on VT100 but for
some reason, I lost my color in vim and even mc would not work right,
the <F10> would not let me exit mc so the keys were also screwed up. I
tried putty and it emulates xterm and this is wonderful! mc works now
with color, vim works with color, and the spell checker that you showed
me works great!

For some reason though, when I call vi from slrn like this, I get no
color. I have to figure this out somehow, I really did like the color in
vim for an slrn editor. Must be the way I am calling it from
/etc/slrn.rc or something. Let's see how that was done then...

...Oh I have it set to use pico in /etc/slrn.rc. I must be overriding it
with my ~/slrn.rc. Let me see...

...oh yes I am.

set editor_command "vi '+set tw=72' +%d %s"

What is wrong with that statement to call in vi that would make it not
be in color? This is the last thing that I have to work out, if you have
any ideas, then please pitch in. Doesn't matter though, you helped a
real lot, thanks buddy.

Wow this is great, I am really using slrn now, have vi for the editor,
and the spell checking works. <happy camper>

-- 
~Ohmster
"Read Ohmster" in subject, bypass spam filter.
ohmster /a/t/ newsguy dot com
Technical Details
Message-ID: <slrndg52j0.9f3.ohmster@ohmster.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!news.glorb.com!bigfeed.bellsouth.net!bignumber.bellsouth.net!news.bellsouth.net!bignews5.bellsouth.net.POSTED!3dfe8c4a!not-for-mail
References: <Xns96B28AF298750MyBigKitty@216.77.188.18> <Xns96B291DF45886MyBigKitty@216.77.188.18> <slrndfv3ks.2sn.richr@durandal.multijoy.com> <slrndfv5qj.8m9.ohmster@ohmster.com> <4ii4t2x288.ln2@news.gates-of-hell.com>

Show Full Headers
Complete Article Headers
Message-ID: <slrndg52j0.9f3.ohmster@ohmster.com>
Subject: Re: [slrn] external editor and sorting
Date: Wed, 17 Aug 2005 00:51:11 GMT
From: The Ohmster <ohmster@ohmster.com>
References: <Xns96B28AF298750MyBigKitty@216.77.188.18> <Xns96B291DF45886MyBigKitty@216.77.188.18> <slrndfv3ks.2sn.richr@durandal.multijoy.com> <slrndfv5qj.8m9.ohmster@ohmster.com> <4ii4t2x288.ln2@news.gates-of-hell.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!news.glorb.com!bigfeed.bellsouth.net!bignumber.bellsouth.net!news.bellsouth.net!bignews5.bellsouth.net.POSTED!3dfe8c4a!not-for-mail
Newsgroups: news.software.readers
Organization: Ohm's Fish Market
User-Agent: slrn/0.9.8.1 (Linux)
Lines: 62
X-Complaints-To: abuse@bellsouth.net
X-Abuse-Info: Please forward a copy of all headers for proper handling
X-Trace: ldjgbllpbapjglppdbdpiflmbcekedmfhojhikkbagflhcboebknjndlclopgolbgehenobogpfafdjjaegeldlkeianchlameoijpmgkhhgicfdppihcgbamglkeopcanccophfkgmmebgfomlgcccebcdfdbbm
NNTP-Posting-Date: Tue, 16 Aug 2005 20:51:11 EDT