5

Is there a list of keys which aren't mapped by default in vim?

  • 3
    Something like this? – BvdL Dec 2 at 19:59
  • Yes, this could be posted as an answer – ideasman42 Dec 2 at 20:21
5

Free Keys

Normal Mode

  • <C-K>
  • <C-_> (Same as <C-/>)
  • <C-[> (Same as <Esc>)
  • <C-@> (Same as <C-Space>)

Visual Mode

  • <C-T>
  • <C-K>
  • <C-@> (Same as <C-Space>)
  • <C-O>
  • Q
  • Z
  • .
  • <C-R>
  • <C-_> (Same as <C-/>)
  • <C-^>
  • &
  • <C-I> (This is the <Tab> key)

Insert Mode

  • <C-_> (Same as <C-/>)
  • <C-Z> (Unless insertmode is set)
  • <C-B

Command-line Mode

  • <C-@> (Same as <C-Space>)
  • <C-O>
  • <C-Z>
  • <C-_> (Only active in default vim if allowrevins is set, for right-to-left languages)
  • <C-X>

All Modes

  • All function keys
  • All ALT key combinations
  • <C-S>

Used source: https://vim.fandom.com/wiki/Unused_keys

This link points to a page listing unused keys in vim.

This page also lists keys that are synonyms of other keys in terms of functionality, meaning that these keys can be safely remapped.

  • 1
    This answer would benefit from having at least some of the unused keys listed as part of the answer. If that link were ever to break, this answer would be rendered useless, except to suggest that Yes a list does (or did, if the link dies) exist. For more information, see this Meta post about Link-only answers. – Davy M went to fund Monica Dec 3 at 5:07
  • This answer doesn't mention alt/shift keys. – ideasman42 Dec 4 at 5:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.