During insert mode my Home key is set to toggle case of character which is very annoying. I tried this command to search for any settings, but failed to solve the problem. I would like to set it to go at the beginning of a line ("0").
:redir! > vim_key_setting.txt
silent verbose imap
redir END
I pasted this file on pastebin.com: vim_keys_map.txt
Pressing the Home key while in insert mode shows following message in the status line:
^[[1~
Update: It seems to be a tmux problem with the escape characters, since the bug doesn't occur in tilix,konsole or alacritty(w/o tmux).
Weird enough the END key works and vim -g
(vim gui) runs as expected.
^[[1~
as posted above.^[[1~
as the "home key" and treats it as literal text (~
toggles case). What is the value of yourTERM
environment variable? Usually setting that to the correct value fixes things (e.g.tmux-256color
for tmux).TERM=xterm-256color
. In the tmux's instruction it is said that there is no need to set this variable. So I unset it in my.zshrc
. However theHOME
key works in that case. The only problem is that I can't get vim in color now :(. Without settingecho $TERM
shows metmux-256color
. I also played within the.tmux.conf
settingset -g default-terminal "tmux-256color
... but nothing changed.