在 Vim 中同时向下滚动拆分窗口的两个部分 [英] Scrolling down both parts of a split-window at the same time in Vim

查看:24
本文介绍了在 Vim 中同时向下滚动拆分窗口的两个部分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在 Vim 中向下滚动垂直拆分窗口的左右部分?我有两个文件想粗略比较.这些文件的每一行看起来几乎相同.

Is it possible to scroll down the left and right parts of a vertically split window in Vim? I have two files I would like to compare roughly. Each line of these files looks almost the same.

推荐答案

查看 滚动绑定.您需要为您想要绑定的每个窗口设置此项(例如至少 2 个)

See the documentation for scroll-binding. You'll need to set this for each window that you want bound (e.g. a minimum of 2)

如果您要比较 2 个文件,vimdiff 可能更有用

If you're comparing 2 files, however, vimdiff may be of more use

这篇关于在 Vim 中同时向下滚动拆分窗口的两个部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆