🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #138039

Re: [slrn] using vim

#138039
From: Mike Vanecek
Date: Sun, 23 Nov 2003 19:17
75 lines
3025 bytes
On Mon, 17 Nov 2003 12:10:49 +0100, Tobias Mummert wrote:
> Hi Mike!

> * Mike Vanecek [2003-11-16 20:49 GMT] wrote:

>>> ,----[ .vimrc ]
>>>| au BufNewFile,BufRead /tmp/SLRN[0-9A-Z.]* so ~/.vim/vim.news
>>> `----

>>> In '~/.vim/vim.news' you can set tw=78.

>> Is that the only thing that is in vim.news; i.e., set tw=78 ?

> Of course not, you can configure 'vim.news' according to your needs,
> i.e. mapping, abbreviations or your own color scheme.

>> Will the below work with the above?

>>> " delete quote indicators on empty lines
>>> " from w.citoan in n.s.r:
>>> au BufRead ~/.followup :% s/^>[ >]*$//

> Why don't you try it? ;-)

> I haven't tested this command, but I think you should replace
> '"/.followup' with the appropriate location of your system.

> Best Regards,
> Tobias

Tobias, I gave it a whirl. My setup is:



> Best Regards,
> Tobias

Tobias, I gave it a whirl. My setup is:


~/.slrnrc settings:
set editor_command "gvim -geometry 106x42+10+10 %s +%d -c '+/^$/+'"
set mail_editor_command "gvim -f -geometry 106x42+10+10 '+set tw=72' +%d '%s'"
set post_editor_command "gvim -f -geometry 106x42+10+10 '+set tw=72' +%d '%s'"
set score_editor_command "gvim -f -geometry 106x42+10+10 '+set tw=72' +%d '%s'"


[]$ cat ~/.vimrc
set nocp
" Spelling Macros
map <f8> \1\2<CR>:e! %<CR>
map \1 :w!<CR>
map \2 :!/usr/local/bin/newsbody -qs -n % -p /usr/bin/aspell check \%f<CR>
" Auto reformat macro
map <f5> gg/^$<CR>V/^-- $<CR>{gq`^
map <f4> :set nohlsearch
" delete quote indicators on empty lines
" from w.citoan in n.s.r:
au BufRead ~/.followup :% s/^>[ >]*$//
set cmdheight=2
au BufNewFile,BufRead /tmp/SLRN[0-9A-Z.]* so ~/.vim/vim.news
 
[]$ cat ~/.vim/vim.news
set tw=78

The follow-opens and the quote indicators on empty lines are removed.
However, the cursor is left at the beginning of the text, i.e., at On
Mon, 17 Nov 2003 .... rather than being placed after all the quoted text
and before the -- signature indicator. Any ideas on how to get both to
work at the same time?


-- 
  Thanks, Mike.
Technical Details
Message-ID: <bfd791-6td.ln1@news.invalid.99computer>
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!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!border1.nntp.ash.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!amsnews01.chello.com!newscene!novia!novia!sequencer.newscene.com!not-for-mail
References: <2e44pb.oq3.ln@127.0.0.1> <slrnbrbpoa.26n.teergrube@doczook.de> <gs3l81-jp7.ln1@news.invalid.99computer> <slrnbrhb5p.15c.teergrube@doczook.de>

Show Full Headers
Complete Article Headers
Message-ID: <bfd791-6td.ln1@news.invalid.99computer>
Subject: Re: [slrn] using vim
Date: Sun, 23 Nov 2003 19:17:28 +0000
From: Mike Vanecek <MikeV99@privacy.net>
References: <2e44pb.oq3.ln@127.0.0.1> <slrnbrbpoa.26n.teergrube@doczook.de> <gs3l81-jp7.ln1@news.invalid.99computer> <slrnbrhb5p.15c.teergrube@doczook.de>
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!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!border1.nntp.ash.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!amsnews01.chello.com!newscene!novia!novia!sequencer.newscene.com!not-for-mail
Newsgroups: news.software.readers
Lines: 75
X-Archive: encrypt
User-Agent: slrn/0.9.8.0 (Linux)