Article View: news.software.readers
Article #138344Re: [slrn] using vim
From: Mike Vanecek
Date: Thu, 27 Nov 2003 15:52
Date: Thu, 27 Nov 2003 15:52
73 lines
3819 bytes
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.
Technical Details
Message-ID:
<h0jh91-qqc.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-mailReferences:
<2e44pb.oq3.ln@127.0.0.1> <slrnbrbpoa.26n.teergrube@doczook.de> <gs3l81-jp7.ln1@news.invalid.99computer> <slrnbrhb5p.15c.teergrube@doczook.de> <bfd791-6td.ln1@news.invalid.99computer> <slrnbs6p2e.1rm.teergrube@doczook.de> <87rc91-pmv.ln1@news.invalid.99computer> <slrnbsbf2h.342.teergrube@doczook.de>Show Full Headers
Complete Article Headers
Message-ID: <h0jh91-qqc.ln1@news.invalid.99computer> Subject: Re: [slrn] using vim Date: Thu, 27 Nov 2003 15:52:20 +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> <bfd791-6td.ln1@news.invalid.99computer> <slrnbs6p2e.1rm.teergrube@doczook.de> <87rc91-pmv.ln1@news.invalid.99computer> <slrnbsbf2h.342.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: 73 X-Archive: encrypt User-Agent: slrn/0.9.8.0 (Linux)