Home and End keys doesn't work in vim inside tmux

3

I can't use home and end keys in vim, when in Tmux. I've got this strange stuff:

H
F
H
sample text

my .tmux.conf:

set-option -g mode-mouse on
set-option -g mouse-select-pane on
set-option -g mouse-select-window on
set-option -g xterm-keys on # this one handles F keys in vim.

holms

Posted 2013-03-01T10:38:29.090

Reputation: 2 897

1Use ^ (or 0, depending on where you actually want to go) and $. – romainl – 2013-03-01T13:10:45.863

can you please explain how to use them? shift+6 doesn't work.. what those symbols means? – holms – 2013-03-01T14:56:08.757

2These are Vim's basic keybindings for "start of the line" and "end of the line". They are much better than <home> and <end>. – romainl – 2013-03-01T16:18:59.947

1well to call ^ it's shift+6 right? this doesn't work. – holms – 2013-03-03T13:52:07.973

1There seems to be a bug somewhere. With certain values of TERM, it breaks. For me it breaks across all sessions in tmux even between different servers I'm SSH'd into.

My errant line (from .bashrc): alias tmux="TERM=screen-256color-bce tmux" – flickerfly – 2013-10-01T19:38:50.267

No answers