Outside of tmux they work well. These key combinations should move the cursor to the beginning of the document and, respectively, to the end of the document.
How do I make them work?
Thank you very much! :-)
Vi and Vim Stack Exchange is a question and answer site for people using the vi and Vim families of text editors. It only takes a minute to sign up.
Sign up to join this communityThe reason why Ctrl-Home and Ctrl-End don't work for Vim inside of Tmux is because Tmux eats those inputs.
To fix this you need to unbind the affected keys in your Tmux config wich is located at ~/.tmux.conf
To unbind a key
unbind-key -[key]
So for your example:
unbind-key C-Home
unbind-key C-End
tmux
had anything bound to those keys. And they're not bound these days. And by the way, doesn't unbind-key C-Home
unbinds C-b C-Home
, not C-Home
?
G
andgg
?~/.tmux.conf
and see if maybe you have defined some mappings for<C-Home>
and<C-End>
there.