What’s the proper syntax for setting CSI sequence mappings ? I’m trying to do something along the lines of:
# keybindings.vim
nnoremap "<Esc>[1;9A" 5k
nnoremap "<Esc>[1;9B" 5j
nnoremap "<Esc>[106;9u" bprevious
nnoremap "<Esc>[107;9u" bnext
nnoremap "<Esc>[117;9u" <cmd>…<cr>
My understanding is that you need CSI sequences for control in (virtual) terminals. What do you want to achieve in the editor, which key combination should trigger which action?
It’s not really about a specific thing that I want to do, but rather in general if I wanted to specify my keybindings using CSI sequences, what would the syntax for that be?
I ask because I read in iTerm’s documentation: “neovim supports CSI u out of the box with no additional configuration needed.”. Is this true ? is it all CSI sequences or just a range ? in what sense are CSI sequences supported ? and again can we bind them in our configuration to some actions ? and what’s the exact syntax for that ?
Currently this is not something that is configurable.