I want to map the keystroke Ctrl + § to :Telescope oldfiles
in neovim. I naively tried this:
vim.keymap.set('n', '<C-§>', ':Telescope oldfiles<CR>', {noremap = true, silent = true })
but this doesn’t work. I was a bit confused, since <C-1>
, which is adjacent to § on my ISO-CH keyboard, works perfectly fine:
vim.keymap.set('n', '<C-1>', ':Telescope oldfiles<CR>', {noremap = true, silent = true })
It seems like the <C-§>
binding doesn’t exist in this way, but how can I get the underlying character sequence (I think in nvim this is called termcode? ) which represents this keystroke? I would like to find a general approach to this problem since I have more keys that I can’t find the combination for.