🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
2 messages
2 total messages Started by Satori7 Wed, 22 Mar 2000 00:00
[slrn] Opening vi with :set wm=60
#59479
Author: Satori7
Date: Wed, 22 Mar 2000 00:00
17 lines
1258 bytes
This should be fairly simple. 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?

Thanks 
-- 
Chris Hawkins

RAM wasn't built in a day.

Re: [slrn] Opening vi with :set wm=60
#59493
Author: 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

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