🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #59493

Re: [slrn] Opening vi with :set wm=60

#59493
From: Sven Guckes
Date: Wed, 22 Mar 2000 00:00
31 lines
1906 bytes
* Satori7 <satori7@technogeek.org>:
> I'm trying to figure out how to get slrn to
> automatically start vi with wrap margin set to 60.
> I know that to do this from the command line I can just do:
> 	vi -c ":set wm=60" [filename]
> However this won't work in the .slrnrc because it breaks when double
> quotes are used. Does anyone know how to get this to work?

Try single quotes then!
Btw, I think you meant "textwidth"
rather than "wrapmargin".  ;-)

	set editor_command  "vi %s %d -c 'tw=60'"

$ :r! grep vim .slrnrc
% set       editor_command "vim %s +%d -c ':0;/^$/+'"
% set       editor_command "vim -c $ %s +%d"
  set       editor_command "vim + %s"
% set  mail_editor_command "vim %s +%d -c ':0;/^$/+'"
% set  post_editor_command "vim %s +%d -c ':0;/^$/+'"
% set score_editor_command "vim %s +%d -c ':0;/^$/+'"

Sven  [works for me :-)]

-- 
Sven Guckes guckes-slrn@math.fu-berlin.de           SLRN latest version:
SLRN Home Page:       http://www.slrn.org/          SLRN-0.9.6.2 [991223]
SLRN setup file:      http://www.math.fu-berlin.de/~guckes/slrn/rc
SLRN setup file:      http://www.math.fu-berlin.de/~guckes/setup/slrnrc

Technical Details
Message-ID: <8bbh77$4qc5h$4@fu-berlin.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.mbox.zip!not-for-mail
References: <58554287EFDA40C2.7899004FA7463E4A.C1BACF97183856EC@lp.airnews.net>

Show Full Headers
Complete Article Headers
Message-ID: <8bbh77$4qc5h$4@fu-berlin.de>
Subject: Re: [slrn] Opening vi with :set wm=60
Date: Wed, 22 Mar 2000 00:00:00 +0000
From: guckes@math.fu-berlin.de (Sven Guckes)
References: <58554287EFDA40C2.7899004FA7463E4A.C1BACF97183856EC@lp.airnews.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 601044914
X-Trace: fu-berlin.de 953763879 5058737 160.45.41.21 (16 17 19)
Organization: Freie Universitaet Berlin
User-Agent: slrn/0.9.6.2 (SunOS)
Reply-To: guckes-usenet@math.fu-berlin.de
Newsgroups: news.software.readers