tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: "Dr. Tom Blinn, 603-881-0646" <tpb () zk3 ! dec ! com>
To: tru64-unix-managers
Subject: Re: vi search results positioning
Date: Fri, 20 Jan 1995 17:37:05 +0000	[thread overview]
Message-ID: <96075316706565.tru64-unix-managers.marc@archive.invalid> (raw)


> Here's a little annoyance I've observed under the last several releases of
> OSF/1 up to and including 2.1.  In vi(1), if I search downwards in a file,
> vi redraws the screen so that the found line is in the middle of the screen.
> If I search upwards, vi redraws the screen so that the found line is at the
> top of the screen.  I would rather it always positioned the found line in the
> middle of the screen (assuming of course that there are enough lines above
> and below the found line).  Is there a way to make vi do that?

Gee, there must be a way, because when I just tried it (on V2.0) it did what
you say you want.  And I'm no vi wizard.

My vi settings (mostly defaults) are as follows, and I run vi in an xterm,
which MIGHT make a difference..

:set all
noautoindent            nomodeline                      noshowmode
autoprint               nonumber                        noslowopen
noautowrite             nonovice                        nosourceany
nobeautify              nooptimize                      tabstop=8
closepunct='".,;)]}     paragraphs=IPLPPPQPP LIpplpipbp taglength=0
directory=/var/tmp      partialcharacter=-              tags=tags /usr/lib/tags
noedcompatible          prompt                          term=xterm
noerrorbells            noreadonly                      noterse
noexrc                  redraw                          timeout
flash                   remap                           ttytype=xterm
hardtabs=8              report=5                        warn
noignorecase            scroll=23                       window=47
nolisp                  sections=NHSHH HUuhsh+c         wrapscan
nolist                  shell=/bin/csh                  wrapmargin=44
magic                   shiftwidth=2                    nowriteany
mesg                    noshowmatch                     wraptype=word

The differences I see are I don't use autoindent by default, I have my
window and scroll set larger (because that's how my xterm is set), I use a
wrapmargin, I have my shiftwidth set to 2, and the path to my shell is not
the same as yours.  On my system, there is no /usr/lib/tags file, and I do
not have a tags file in my home or working directory.  I use '?' to start
or continue a backward search.

Tom
 
 Dr. Thomas P. Blinn, UNIX Software Group, Digital Equipment Corporation
  110 Spit Brook Road, MS ZKO3-2/U20   Nashua, New Hampshire 03062-2698
   Technology Partnership Engineering           Phone:  (603) 881-0646
    Internet: tpb@zk3.dec.com           Digital's Easynet: alpha::tpb

  Worry kills more people than work because more people worry than work.

     My favorite palindrome is: Satan, oscillate my metallic sonatas.
                                         -- Phil Agre, pagre@ucsd.edu

  Opinions expressed herein are my own, and do not necessarily represent
  those of my employer or anyone else, living or dead, real or imagined.
 

             reply	other threads:[~1995-01-20 17:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-01-20 17:37 Dr. Tom Blinn, 603-881-0646 [this message]
  -- strict thread matches above, loose matches on Subject: below --
1995-01-20 15:45 vi search results positioning Stephen Campbell
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox