" See https://vim.fandom.com/wiki/Mapping_fast_keycodes_in_terminal_Vim " See termcap-options for mapped key info " Some may not mapped correctly mapped for F1 to F4 (See vt100-function-keys ) " To set them, you can have a look at https://vim.fandom.com/wiki/Mapping_keys_in_Vim_-_Tutorial_(Part_2) " :set = " Those are the key for gnome-terminal with zsh on archlinux if &term =~ "xterm." set = set = set = set = endif "you could also direclty map them " map :some vimcmds " you can check the result with :map