2

I'm using Tmux on MacOS10.14.6 and want to scroll up and down with vim's keybindings. I can scroll with the arrow key using Ctrl-b, then [ and then the arrow keys (, , , ). Instead of the arrow keys I tried vim's keybinding (Ctrl+U or Ctrl+D) as explained here without success. What am I doing wrong?

emallove
  • 474
ecjb
  • 175

1 Answers1

1

Looking at the tmux man page, it seems that if your EDITOR or VISUAL environment variable has the string "vi" in it anywhere, it may set your tmux to use vi key bindings.

You probably need to be in "copy mode" for the scrolling to work. That's what the Ctrl-b then [ does for emacs bindings. Try entering copy mode (maybe "[" for vi keys) and then use Ctrl-e (scroll down) and Ctrl-y (scroll up). Again, I got these from the man page. It helps to search for "bindings" there.

Finally, the "bind-key" command can help you to change the key bindings if you want to change what scrolls up and down. The "list-keys" command may help you see your current bindings.

Mike Foss
  • 161