designetwork(EN)

IT technical memo of networking

Turn on/off iTerm's Vim scroll setting (not use .vimrc)

Change the scroll setting when switching to Vim screen with iTerm 2 popular as a MacBook terminal.

I often see an article saying .vimrc the following setting, but it did not work well in my environment.

vi ~/.vimrc

set mouse=a

This time, not the .vimrc, but how to switch the operation from iTerm's setting (Preferences) is described.

Environment information

Turn scrolling on/off from Setting (Preferences)

iTerm2 > Preferences > Advanced

Mouse > Scroll wheel sends arrow keys in alternate screen mode.

Easy access from the search window with scroll .

Scroll wheel sends arrow keys in alternate screen mode. setting changes the scrolling behavior as follows.

Yes : Scroll in the Vim window
No : iTerm window scrolls regardless of Vim

In my case, since there are many cases I want to paste from Vim in past console logs, I set the setting to No so that the iTerm window scrolls.

Conclusion - Turn on/off iTerm's Vim scroll setting (not use .vimrc)

While using iTerm 2 with MacBook, you can change the scroll setting in Vim window from Scroll wheel sends arrow keys in alternate screen mode. in Preferences.


This Blog is English Version of my JP's.

Sorry if my English sentences are incorrect.

designetwork