Thursday, October 12, 2017

Re: scrolloff side effects are bothersome

Bram wrote:
> Hmm, it's possible to make these commands not use 'scrolloff' when an
> operator is pending. It won't be consistent with other operations
> though. But it does make sense when 'scrolloff' is a large number,
> since it's then hard to estimate what text will be covered. While the
> first visible line or last visible line are easy to spot.
>
> With this change no tests fails, so perhaps no user will have a problem
> with it? Still I worry about the inconsistency. Als, "yH" will scroll
> the text.

I wonder, seriously, how many (if any) users of H and L had previously
run into this problem to be aware of what you consider "inconsistency".

Because as I noted yesterday, H and L are, I think, the ONLY vi
movements that are about what-is-currently-displayed. Everything else
is about searches, straight out character or line counts, marked
positions, and explicit positions.

I include find-match "%", end-of-paragraph "}", find-character "f"/"t",
etc, in "searches"; start-of-line-test "^" possibly that or else
"explicit positions" like character "|", end-of-line "$", start-of-line
"0", and end-of-file "G". And marked positions either named (eg "`a") or
implicit (eg "''") don't change depending on view or cursor position.

And I don't include any movements that are in vim, but not vi. (Not that
I can think of any relevant for this point, but I know there's a lot in
vim I don't use.)

H and L are always the top of the view and the bottom of the view. And
they change when the *window changes size*. They are nothing like the
other vi (real vi) movements. (M, too, changes with window size, but M is
not really affected by scrolloff.)

I've been using vim since just about forever, I know have vim 2.x around
in my archives, and still sometimes think about changes like "Q" becoming
"gq". But I use vim in a very vi-like way, not in a very vim-ish way. So
how vim features interact with vi features might be more concerning to me.

Elijah

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment