0

I have vi shortcuts set on my gnome-terminal and can't figure out how to scroll through the terminal's output after the change. Before I could use Shift+Page-up, but this isn't working in normal or insert mode. I'm also using tmux.

1
  • 3
    I'm voting to close this question as off-topic because this is about terminal key bindings and not the Vi family of editors.
    – muru
    Apr 7, 2018 at 11:31

1 Answer 1

3

In tmux you can use prefix+[ to enable scrolling, which allows you to scroll inside your pane using vim bindings. Use q to exit this mode.

2
  • This isn't working in the way I was expecting. I see only movement of the cursor with the arrow keys, and g or f shortcuts. No ctrl+e, ctrl+y, ctrl+f, or ctrl+b. and the g shortcut is odd.
    – Hussar
    Apr 6, 2018 at 22:14
  • @Hussar That's because it's really tmux with vim support, not vim itself that's doing the scrolling. Which makes sense, vim is 'just' and editor but tmux actually deal with panes and windows. See the tmux man pages and search for 'copy mode' for all the vi bindings that are supported. An excerpt is given in the link in the answer.
    – kinbiko
    Apr 7, 2018 at 7:24

Not the answer you're looking for? Browse other questions tagged or ask your own question.