🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
70 messages
70 total messages Page 2 of 2 Started by Steve Sat, 15 Nov 2003 02:52
Page 2 of 2 • 70 total messages
Re: [vim] using aspell (was: [slrn] using vim)
#137948
Author: Sven Guckes
Date: Sat, 22 Nov 2003 09:24
9 lines
1789 bytes
* Mike Vanecek <MikeV99@privacy.net>:
> On 21 Nov 2003 10:44:46 GMT, Sven Guckes wrote:
>> [ news.software.readers -> comp.editors ]
> Can you advise me on how to get both to work

yes - however, not in news.software.readers but
in comp.editors as was given by the headers.

Sven
[slrn] using aspell with slrn (was: [vim] using aspell)
#137959
Author: Mike Vanecek
Date: Sat, 22 Nov 2003 15:39
23 lines
2115 bytes
On 22 Nov 2003 09:24:46 GMT, Sven Guckes wrote:
> * Mike Vanecek <MikeV99@privacy.net>:
>> On 21 Nov 2003 10:44:46 GMT, Sven Guckes wrote:
>>> [ news.software.readers -> comp.editors ]
>> Can you advise me on how to get both to work

> yes - however, not in news.software.readers but
> in comp.editors as was given by the headers.

> Sven

Uhm, my post was in this group? I don't get comp.editors? The topic is
relevant to the use of macros and editors with slrn. The code with which
I am having problems was suggested to me in this group. It is not really 
an aspell problem.

I guess you do not want to advise me in this group. Your right, my loss.

Have a nice day.

-- 
  Thanks, Mike.
Re: [slrn] using aspell with slrn (was: [vim] using aspell)
#137990
Author: Sven Guckes
Date: Sat, 22 Nov 2003 22:17
36 lines
2892 bytes
* Mike Vanecek <MikeV99@privacy.net>:
> On 22 Nov 2003 09:24:46 GMT, Sven Guckes wrote:
>> * Mike Vanecek <MikeV99@privacy.net>:
>>> On 21 Nov 2003 10:44:46 GMT, Sven Guckes wrote:
>>>> [ news.software.readers -> comp.editors ]
>>> Can you advise me on how to get both to work
>> yes - however, not in news.software.readers but
>> in comp.editors as was given by the headers.
>
> Uhm, my post was in this group? I don't get comp.editors?
> The topic is relevant to the use of macros and editors with slrn.

slrn can be used with any text editor.  vim is not an integral part of slrn.
vim is a text editor and text editors are discussed in the group comp.editors.
i had therefore crossposted to comp.editors and set the followup to it.

you have ignored this.
disagree all you want.

you call aspell from vim.  the problem has to do with vim.
slrn has nothing to do with this, slrn does not affect it.

you can continue this discussion by following up to my
previous followup - but in comp.editors where it belongs.

> The code with which I am having problems was suggested
> to me in this group. It is not really an aspell problem.

it's a user problem - that's for sure.

> I guess you do not want to advise me
> in this group. Your right, my loss.

exactly.

Sven
Re: [slrn] using vim
#137993
Author: Blinky the Shark
Date: Sun, 23 Nov 2003 01:34
18 lines
2219 bytes
SINNER wrote:

> This variable decides in which situations slrn will ask you to confirm
> an action. It has a bitmapped value which can be the sum of any
> combination of the following numbers:

> 		  1     Confirm marking groups as read or un-read.  
> 		  2     Confirm printing an article.  
> 		  4     Confirm posts, followups, replies and supersedes.  
> 		  8     Confirm leaving a group by following a news: URL.  
> 		  16    Confirm quitting slrn.
> 					      

Cool -- thanks.  Nice configurability, there.

-- 
Blinky - - - - - - - - - - - - - - - - - - - - - - - Linux RU 297263
<considering a new sig>
Re: [slrn] using vim
#138033
Author: Mike Vanecek
Date: Sun, 23 Nov 2003 15:32
17 lines
1936 bytes
On Tue, 18 Nov 2003 01:09:28 GMT, SINNER wrote:
> * Thomas Schultz Wrote in news.software.readers, on Mon, 17 Nov 2003 22:54:25 +0000 (UTC):
>> * Blinky the Shark [2003-11-17 05:02] :
>> [...]
>>> Damn!  I can *never* remember Esc-? -- I *always* have to look it up,
>>> before I can read a spoiler.  :)

>> Space (article_page_down) also does the trick and might be easier to
>> remember :-)

> I'll be damned! Thanks Thomas!

What is a spoiler or how does it end up in a post?

-- 
  Thanks, Mike.
Re: [slrn] using vim
#138036
Author: Janne Nikula
Date: Sun, 23 Nov 2003 16:56
12 lines
2127 bytes
Mike Vanecek <MikeV99@privacy.net> wrote:
> What is a spoiler or how does it end up in a post?

Spoiler is something that might ruin the fun if others see it by
accident e.g. important plot elements of a movie or an answer to a
riddle. They can be hidden by inserting the form feed ASCII character.
You can enter it with Control+L in vim's insert mode. The same probably
applies to many other editors.

Slrn shows every letter after a spoiler as a * so that you can choose if
you want to see it or not. Another way of hiding spoilers is by using
the ROT13 encoding.
Re: [slrn] using vim
#138039
Author: 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.
Re: [slrn] using vim
#138097
Author: Mike Vanecek
Date: Mon, 24 Nov 2003 17:27
21 lines
2271 bytes
On 23 Nov 2003 16:56:34 GMT, Janne Nikula wrote:
> Mike Vanecek <MikeV99@privacy.net> wrote:
>> What is a spoiler or how does it end up in a post?

> Spoiler is something that might ruin the fun if others see it by
> accident e.g. important plot elements of a movie or an answer to a
> riddle. They can be hidden by inserting the form feed ASCII character.
> You can enter it with Control+L in vim's insert mode. The same probably
> applies to many other editors.

> Slrn shows every letter after a spoiler as a * so that you can choose if
> you want to see it or not. Another way of hiding spoilers is by using
> the ROT13 encoding.

Thank you for the explanation. Why would one put a response in a
spoiler? The messages that I have seen them in would not appear to need
to hid the response?

-- 
  Thanks, Mike.
Re: [slrn] using vim
#138099
Author: SINNER
Date: Mon, 24 Nov 2003 18:10
25 lines
3220 bytes
* Mike Vanecek Wrote in news.software.readers, on 24 Nov 2003 11:27:15 -0600:
> On 23 Nov 2003 16:56:34 GMT, Janne Nikula wrote:
>> Mike Vanecek <MikeV99@privacy.net> wrote:
>>> What is a spoiler or how does it end up in a post?

>> Spoiler is something that might ruin the fun if others see it by
>> accident e.g. important plot elements of a movie or an answer to a
>> riddle. They can be hidden by inserting the form feed ASCII character.
>> You can enter it with Control+L in vim's insert mode. The same probably
>> applies to many other editors.

>> Slrn shows every letter after a spoiler as a * so that you can choose if
>> you want to see it or not. Another way of hiding spoilers is by using
>> the ROT13 encoding.

> Thank you for the explanation. Why would one put a response in a
> spoiler? The messages that I have seen them in would not appear to need
> to hid the response?

It is used mostly in literary and film based usenet groups mostly in the
rec.* hierarchy.
-- 
David                    | AGM Favorite Games - http://tinyurl.com/loec 
Windows 98 recently won a price as best vacuum cleaner ever.
Comment from one of the testers: "Windows 98 sucks more than anything..."
Re: [slrn] using vim
#138108
Author: Klaus Bosau
Date: Mon, 24 Nov 2003 20:03
22 lines
2453 bytes
SINNER wrote:

> News body is part of the spellutils Package. Great little utility. 
> 
> http://home.worldonline.dk/byrial/spellutils/
> 
> The newsbody utility
> The program newsbody is a utility to isolate the body part of a news or
> email message in a separate file and then call some other program which
> may change the body, and eventually merge the headers with the possibly
> changed body. Optionally quotes and/or signature can be removed too, as
> well as all or selected header lines can be kept. Newsbody can use both
> named files and pipes for both input and output. 
> 
> It is typically called from a newsreader (e.g. from slrn's
> `post_filter_hook'), a mailer (e.g. from mutt's `filter-entry' or
> `ispell' commands) or an editor. It can e.g. be used to spell check or
> encrypt the message before sending.

Interesting. Haven't of it yet.. Thanks!

Klaus
Re: [slrn] using vim
#138157
Author: Tobias Mummert
Date: Tue, 25 Nov 2003 14:16
23 lines
1954 bytes
Hi Mike,

* Mike Vanecek [2003-11-23 19:17 GMT] wrote:

> 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?

sorry for the late answer, please put

set post_editor_command "vim -c '/^-- $/-'"

in your .slrnrc.

If it works, report it.

Best Regards,
Tobias
-- 
BOFH excuse #8:
static buildup
Re: [slrn] using vim
#138197
Author: Mike Vanecek
Date: Tue, 25 Nov 2003 20:42
83 lines
4279 bytes
On Tue, 25 Nov 2003 15:16:46 +0100, Tobias Mummert wrote:
> Hi Mike,

> * Mike Vanecek [2003-11-23 19:17 GMT] wrote:

>> 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?

> sorry for the late answer, please put

> set post_editor_command "vim -c '/^-- $/-'"

> in your .slrnrc.

> If it works, report it.

> Best Regards,
> Tobias

Yes it works!! Places the cursor at the line just above the signature space.

FYI, here is what I now have:

.slrnrc
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=78' -c '/^-- $/-'"
set score_editor_command "gvim -f -geometry 106x42+10+10 '+set tw=72' +%d '%s'"

.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


Note I am not using au BufNewFile,BufRead /tmp/SLRN[0-9A-Z.]* so
~/.vim/vim.news. Since things appear to be working, I assume it is not needed?
I would like to understand why all this is happening. So, ...

The autocommand says to watch for the event of starting to edit a new file or
or starting to edit a new buffer, look for a file matching the /tmp/SLRN]
pattern, and then process the options in vim.news. In that manner, slrn
options can be kept separate from general edit options. Yes? My question with
this however, is that when I look in the /tmp directory, it does not contain
the SLRN file. Hence, that autocommand is not really doing anything? Am I
missing something with the way slrn works? 

I understand the -f and -geometry. The set tw=78 sets the text width to 78 for
the current edit session. If I understand it correctly, it could also have
been written as -c 'set tw=78' since the + and -c means execute a command? The
command -c '/^-- $/-' says to execute a search command for --space, go to the
end of the line, and then up one line? How does the /- tell it to go up one
line?

Also, the +%d %s options are not on the line. What exactly is their
interpretation? Is it + == -c for command, % == this file? Then I get lost
with the d and s?

The other autocommand says whenever .followup is read into a buffer, search
this file (:%), do a global find and replace for > starting at the beginning
of a line, followed by either a space or another >, followed by either a space
or another >, until the end of line; if match is true, replace it with
nothing. Anywhere close?

Thank you very much for your help. Even with a Vi Editor book, man gvim, and
online gvim help, this stuff is close to magic.
  

-- 
  Thanks, Mike.
[vim] different startups with cursor placement (was: [slrn] using vim)
#138205
Author: Sven Guckes
Date: Tue, 25 Nov 2003 22:44
115 lines
5255 bytes
* Mike Vanecek <MikeV99@privacy.net>:
> On Tue, 25 Nov 2003 15:16:46 +0100, Tobias Mummert wrote:
>> set post_editor_command "vim -c '/^-- $/-'"
>
> Yes it works!! Places the cursor at the line just above the signature space.
>
> FYI, here is what I now have [in the] .slrnrc:
> 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=78' -c '/^-- $/-'"
> set score_editor_command "gvim -f -geometry 106x42+10+10 '+set tw=72' +%d '%s'"
>
> ..
> I understand the -f and -geometry. The set tw=78 sets
> the text width to 78 for the current edit session. If I
> understand it correctly, it could also have been written as
> -c 'set tw=78' since the + and -c means execute a command?

not quite.  compare:
  $ vim --help | grep -- -c
  $ vim --help | grep -- +

> The command -c '/^-- $/-' says to execute a search command for
> --space, go to the end of the line, and then up one line?

no.  it means this:

    /   search for...
    ^   beginning-of-line
    --  dash-dash-space
    /   end of search pattern
    -   go back one line

so it finds the sigdashes line and then
set the cursor onto the line before.

> How does the /- tell it to go up one line?

both the search command and the '-' are "ex" commands
which are put nto the command line and executed by
the underlying editor.  "man ed", "LINE EDITING".

> Also, the +%d %s options are not on the line.
> What exactly is their interpretation?

  $ man slrn
  /6.*  editor_

  6.24.  editor_command
  The following % escapes can be used:
  %s    name of the file to edit
  %d    number of the first line of the message body

>   au BufRead ~/.followup :% s/^>[ >]*$//
> The other autocommand says whenever .followup is read into a buffer,
> search this file (:%), do a global find and replace for > starting
> at the beginning of a line, followed by either a space or another >,
> followed by either a space or another >, until the end of line;
> if match is true, replace it with nothing. Anywhere close?

yep - close enough.

    %       in all lines
    s       substitute
    /       begin of search pattern
    ^       beginning of line
    >       literal greater-than character
    [ >]    set with space and greater-than character
    *       zero or more occurrances of previous set
    $       end of line
    /       end of search pattern and start of replace pattern
    /       end of replace pattern

read aloud as:
"in all lines substitute lines starting with '>'
 and followed by run of '>' and 'space' of any length
 unto the end of line by nothing".

informal short description:
clear all lines containing quote characters runs, allowing spaces.

> Thank you very much for your help. Even with a Vi Editor book,
> man gvim, and online gvim help, this stuff is close to magic.

try the ":help" command - and read all of it.
read up up ":help winpos" and you should be able
to get rid of the "-geometry" in the calls
(they are the same in all cases, anyway).

this would boil down the editor calls to this:

  slrnrc:
  set       editor_command "gvim -f +%d '%s' -c '+/^$/+'"
  set  mail_editor_command "gvim -f +%d '%s'"
  set  post_editor_command "gvim -f +%d '%s' -c '/^-- $/-'"
  set score_editor_command "gvim -f +%d '%s'"

  vimrc:
  au FileType mail  set tw=72

however, if you have a reason for making each editor command
in slrn contain a long list of startup commands then i'm sure
you have good reasons for that - whatever they might be.

but please get a clue about posting questions
about editors and editing to *comp.editors*..

Sven

-- 
VI SUBSTITUTION FAQ http://www.guckes.net/vi/subst.html
VI substitution command aka "search and replace":  HOWTO make use of
addresses (esp line ranges), regular expressions (aka patterns), and flags.
Everyday examples with explanations. --Sven Guckes guckes(at)vi-editor.org
Re: [slrn] using vim
#138324
Author: Tobias Mummert
Date: Thu, 27 Nov 2003 08:56
35 lines
2878 bytes
Hi Mike,

* Mike Vanecek [2003-11-25 20:42 GMT] wrote:

> Note I am not using au BufNewFile,BufRead /tmp/SLRN[0-9A-Z.]* so
> ~/.vim/vim.news. Since things appear to be working, I assume it is not needed?
> I would like to understand why all this is happening. So, ...

Please make a test: Comment the whole autocommand line out by putting
a `"` at the beginning of the line. Fire up slrn, make a post or
a reply. Are the options in ~/.vim/vim.news applied?

> The autocommand says to watch for the event of starting to edit a new file or
> or starting to edit a new buffer, look for a file matching the /tmp/SLRN]
> pattern, and then process the options in vim.news. In that manner, slrn
> options can be kept separate from general edit options. Yes?

Yes, you are right. But consider, that this is a temporary file. When
you exit slrn/vim, it will be erased. Look at the statusline when you
are posting with vim. Is there a '/tmp/SLRN*' entry?

> My question with this however, is that when I look in the /tmp
> directory, it does not contain the SLRN file. Hence, that autocommand
> is not really doing anything? Am I missing something with the way slrn
> works? 

Look at slrns 'use_tmdir' variable, it defaults to 0. Read the entry in
the slrn manual (6.137).

Best Regards,
Tobias
-- 
      \\://
      (o -)
---ooO-( )-Ooo---
Re: [slrn] using vim
#138344
Author: Mike Vanecek
Date: Thu, 27 Nov 2003 15:52
73 lines
3819 bytes
On Thu, 27 Nov 2003 09:56:49 +0100, Tobias Mummert wrote:
> Hi Mike,

> * Mike Vanecek [2003-11-25 20:42 GMT] wrote:

>> Note I am not using au BufNewFile,BufRead /tmp/SLRN[0-9A-Z.]* so
>> ~/.vim/vim.news. Since things appear to be working, I assume it is not needed?
>> I would like to understand why all this is happening. So, ...

> Please make a test: Comment the whole autocommand line out by putting
> a `"` at the beginning of the line. Fire up slrn, make a post or
> a reply. Are the options in ~/.vim/vim.news applied?

No, they are not. Fact is, that is the way I have been running. I changed tw
to tw=15 in vim.news and you can see that it is not taking effect.

>> The autocommand says to watch for the event of starting to edit a new file or
>> or starting to edit a new buffer, look for a file matching the /tmp/SLRN]
>> pattern, and then process the options in vim.news. In that manner, slrn
>> options can be kept separate from general edit options. Yes?

> Yes, you are right. But consider, that this is a temporary file. When
> you exit slrn/vim, it will be erased. Look at the statusline when you
> are posting with vim. Is there a '/tmp/SLRN*' entry?

The status line has ~./followup or ~./article depending whether it is a
followup or post.

I have been using a ^Z to switch out of the process leaving it active. Hence,
the temp file should not be deleted yet. The only files I find that are
modified are ~/.followup and ~/.followup.swp.

I have used root to do a find for slrn* after ^Z out of slrn. Nothing. The
only thing I see in /tmp is a file... whenever I do a spell check. Other than
that, nothing.

The only file that contains the followup data is ~/.followup.

The only file that contains post data is ~/.article (along with its swap file,
~/.article.swp).

No /tmp/SLRN at any time.

>> My question with this however, is that when I look in the /tmp
>> directory, it does not contain the SLRN file. Hence, that autocommand
>> is not really doing anything? Am I missing something with the way slrn
>> works? 

> Look at slrns 'use_tmdir' variable, it defaults to 0. Read the entry in
> the slrn manual (6.137).

6.137.

  use_tmpdir
  Type: integer  
  Default: 0
  If non-zero, temporary files for postings, followups and replies will
  be held in the directory specified by ``$TMP'' (the entry there also
  explains what will happen if $TMP is unset).

TMP
  Indicates the directory in which slrn should save temporary
  files. If it is unset or does not contain an existing directory,
  $TMPDIR is tried. If both are unset, /tmp is used on UNIX
  systems, 

No help there ... I am running with the default.



-- 
  Thanks, Mike.
Re: [slrn] using vim
#138390
Author: Tobias Mummert
Date: Fri, 28 Nov 2003 17:12
63 lines
3696 bytes
Hi Mike,

* Mike Vanecek [2003-11-27 15:52 GMT] wrote:

>>> Note I am not using au BufNewFile,BufRead /tmp/SLRN[0-9A-Z.]* so
>>> ~/.vim/vim.news. Since things appear to be working, I assume it is not needed?
>>> I would like to understand why all this is happening. So, ...
>
>> Please make a test: Comment the whole autocommand line out by putting
>> a `"` at the beginning of the line. Fire up slrn, make a post or
>> a reply. Are the options in ~/.vim/vim.news applied?
>
> No, they are not. Fact is, that is the way I have been running. I changed tw
> to tw=15 in vim.news and you can see that it is not taking effect.

Ok, this means, that slrn doesn't use the /tmp directory, so this means 

BufNewFile,BufRead /tmp/SLRN[0-9A-Z.]* so ~/.vim/vim.news

is not needed.

> I have used root to do a find for slrn* after ^Z out of slrn. Nothing. The
> only thing I see in /tmp is a file... whenever I do a spell check. Other than
> that, nothing.
>
> The only file that contains the followup data is ~/.followup.
>
> The only file that contains post data is ~/.article (along with its swap file,
> ~/.article.swp).
>
> No /tmp/SLRN at any time.

Ok, all right. If you ever want to keep all your slrn related vim
options in *one* file which is automatically sourced for postings,
followups and replies, then use the line above.

To do this, tell slrn the temporary directory you want to use:

,----[ .slrnrc ]
| set use_tmpdir 1
`----

Now, the directory specified by '$TMP' will be used.

If it is unset, '$TMPDIR' is tried. If both are unset, /tmp is used.

You can specify your own tmpdir, let's say /home/user/tmp (you also can
put this in your .bashrc, don't forget to source it 'source ~/.bashrc'):
export TMP="/home/user/tmp"

Confirm it with:
echo $TMP

Use the following line:
BufNewFile,BufRead /home/user/tmp/SLRN[0-9A-Z.]* so ~/.vim/vim.news

This should work.

Best Regards,
Tobias
-- 
hundred-and-one symptoms of being an internet addict:
120. You ask a friend, "What's that big shiny thing?" He says, "It's the sun."
Re: [slrn] using vim
#138392
Author: Tobias Mummert
Date: Fri, 28 Nov 2003 18:28
24 lines
2013 bytes
Hi Mike,

my .slrnrc is available:

http://www.slrn.org

Follow the link on the right side:

Site map...Pictures

Look out for 'Preview #31', there is a link to my slrn configuration
files.

The direct link is
http://www.doczook.de/linux.html

Feel free to ask me, if you have any questions.

Bye,
Tobias
-- 
BOFH excuse #221:
The mainframe needs to rest.  It's getting old, you know.
Re: [slrn] using vim
#138634
Author: Mike Vanecek
Date: Wed, 03 Dec 2003 20:07
27 lines
1717 bytes
On Fri, 28 Nov 2003 19:28:45 +0100, Tobias Mummert wrote:
> Hi Mike,

> my .slrnrc is available:

> http://www.slrn.org

> Follow the link on the right side:

> Site map...Pictures

> Look out for 'Preview #31', there is a link to my slrn configuration
> files.

> The direct link is
> http://www.doczook.de/linux.html

> Feel free to ask me, if you have any questions.

> Bye,
> Tobias

Perfect. Nice information. Thank you for your help.

-- 
  Thanks, Mike.
Re: [slrn] using vim
#138636
Author: Mike Vanecek
Date: Wed, 03 Dec 2003 20:27
40 lines
2371 bytes
On Fri, 28 Nov 2003 18:12:10 +0100, Tobias Mummert wrote:
> Hi Mike,
[snip]

> Ok, all right. If you ever want to keep all your slrn related vim
> options in *one* file which is automatically sourced for postings,
> followups and replies, then use the line above.

> To do this, tell slrn the temporary directory you want to use:

> ,----[ .slrnrc ]
>| set use_tmpdir 1
> `----

> Now, the directory specified by '$TMP' will be used.

> If it is unset, '$TMPDIR' is tried. If both are unset, /tmp is used.

> You can specify your own tmpdir, let's say /home/user/tmp (you also can
> put this in your .bashrc, don't forget to source it 'source ~/.bashrc'):
> export TMP="/home/user/tmp"

> Confirm it with:
> echo $TMP

> Use the following line:
> BufNewFile,BufRead /home/user/tmp/SLRN[0-9A-Z.]* so ~/.vim/vim.news

> This should work.

> Best Regards,
> Tobias

Indeed it does. After experimenting a while, I think I like the use of
.followup and .article since it provides a history of the last action.
However, it was a useful learning exercise.

-- 
  Thanks, Mike.
Page 2 of 2 • 70 total messages
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads