Vim leaves 5 lines on top/bottom when the commands L, H, M, zb, zt

36 views
Skip to first unread message

Alexey Demin

unread,
Aug 31, 2020, 12:39:11 PM8/31/20
to vim_use
Hi,

I'd like to know is it the correct behavior of VIM when in diffmode it doesn't handle L, H, M, zb, zt, ... commands according to the documentation. It leaves 5 lines top/bottom respectively.

One might reproduce it with comparing two files via "vim -d first second", scroll 2 pages down and use zb, zt commands in Normal-mode.

So, Is it expected behavior? Does the documentation has any notes about it?

Tony Mechelynck

unread,
Aug 31, 2020, 12:45:15 PM8/31/20
to vim_use
Yes, it is expected and configurable. See :help 'scrolloff'

Best regards,
Tony.

Alexey Demin

unread,
Aug 31, 2020, 1:24:52 PM8/31/20
to vim...@googlegroups.com
Thank you!

пн, 31 авг. 2020 г., 19:45 Tony Mechelynck <antoine.m...@gmail.com>:
--
--
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 a topic in the Google Groups "vim_use" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vim_use/aIfXpiH0psI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vim_use+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAJkCKXsNyQj4poSO0yKTby-DYMM2hyNUSEh8RSpa7-aztd8tQA%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages