Re: Command ($ or #) line; smart completion?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2005-11-29 at 09:02, Matthew Miller wrote:

> > > > Hit control-R for an emacs-like incremental-search through history.
> > > > There's a way to switch to vi-style but when I tried it long ago
> > > > it lost the up/down arrow scroll through history.  Does anyone
> > > > know if that is fixed now?
> > > It never was broken. 
> > It is broken compared to current vi.
> 
> Compared to vim, you mean, yeah?

It has been a long time, but I'm fairly sure that the last AT&T SysVr4
version of vi I used handled up/down arrows gracefully too.  And I
think it did it simply by mapping them to the codes to shift out of
insert mode, move and shift back in - but I don't recall how it knew
which mode to set after the motion.

> Since bash is GNU, I think they're probably in the emacs camp and don't care
> too much about the vi mode.

I know - vi and man pages weren't invented there.

> They probably accept patches, though. :)

A key mapping should work without code changes if there is a way to
restore the previous mode.

-- 
  Les Mikesell
   lesmikesell@xxxxxxxxx



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux