12

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

4
  • 4
    Something like this?
    – bas
    Dec 2, 2019 at 19:59
  • Yes, this could be posted as an answer
    – ideasman42
    Dec 2, 2019 at 20:21
  • Which vi implementation do you refer at @ideasman42 ?
    – gildux
    Jan 24, 2023 at 1:28
  • gVIM I suppose (it seems mostly the same as VIM).
    – ideasman42
    Jan 24, 2023 at 6:37

2 Answers 2

16

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 doesn't mention alt/shift keys.
    – ideasman42
    Dec 4, 2019 at 5:24
2

This list shows the unbound keys in standard vi; unbound keys extracted from the complete list of all the bound keys in the link:

g   UNBOUND
q   UNBOUND
v   UNBOUND
K   UNBOUND
V   UNBOUND
#   UNBOUND
*   UNBOUND
\   UNBOUND
=   UNBOUND
^A  UNBOUND
^C  UNBOUND
^I  (TAB) UNBOUND
^K  UNBOUND
^O  UNBOUND
^V  UNBOUND
^W  UNBOUND
^X  UNBOUND
^[  (ESC) cancel started command; otherwise UNBOUND
^_  UNBOUND
^?  (DELETE) UNBOUND

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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