Как использовать мышь для прокрутки вверх / вниз в MacOS Yosemite Terminal, когда открыт vi

12578
RaamEE

В MacOS X до-Yosemite версии я мог открыть viв окне терминала и прокручивать историю терминала. В viлинии в данном случае не прокручивать.

Для прокрутки я использовал два пальца коврика для мыши вверх / вниз.

В Йосемити это не работает. Когда я пытаюсь прокрутить вверх / вниз, курсор viперемещается, а линии viпрокручиваются вверх / вниз.

Как я могу прокрутить окно вверх?

3

3 ответа на вопрос

5
Thomas Dickey

The behavior is configurable in Terminal.app, but the default binding for scrolling has changed so that the shift modifier is no longer need. (You can change it back, in Terminal's Preferences). Here are some links discussing the changes

There are other changes (to home and end) introduced in Yosemite, which are reflected in ncurses' terminal entry for nsterm, which is the recommended setting for TERM:

4
Bmayer0122

In Terminal select Terminal -> Preferences -> Profiles -> Keyboard -> Scroll Alternate screen (unchecked) to reset the behavior

2
RaamEE

In Yosemite vs. previous OSX versions, the scrolling is now done by holding down the shift key while scrolling up\down.

Scrolling up\down without holding the shift key, will scroll through VI's lines.