12

I'm using Vim for a while now, starting to like it more and more. But when searching for some new features that Vim has in it's goodie bag, I'm often slapped in the face with things like <Leader> <C-r>, etc... I'm feeling really stupid for not being able to relate these to keys, commands, or what soever they should mean. I've also been searching multiple times for the use of these verbs, but I think I'm not using the correct search queries to get to the right explanation pages.

Could someone give me a push in the right direction or maybe summarize the meaning / workings of these verbs?

bad_coder
  • 643
  • 1
  • 7
  • 16
Ambidex
  • 385
  • 1
  • 3
  • 16

2 Answers2

20

:help key-notation lists the meanings of all those <key>.

romainl
  • 22,554
  • 2
  • 49
  • 59
2

Mhhh .. among the first results in google for "vim leader" this pops up:

https://stackoverflow.com/questions/1764263/what-is-the-leader-in-a-vimrc-file

<C-r> is some mapping to the Ctrlr key-combination, whatever that maps to. You just enter :help c-r and press tab to get the list of help topics.

akira
  • 61,009
  • 17
  • 135
  • 165
  • Feeling even more stupid now... Thanks, I can't even imagine how I would not have found that... I did not know about the `:help c-r` for help on shortcuts, thanks! – Ambidex Oct 11 '12 at 07:37
  • 1
    `c-r` itself is most likely a `mapping`, fire `:map` or `:vmap` or `:imap` to see whats behind it. – akira Oct 11 '12 at 07:40
  • `help c-r` took me to ` – Flimm Feb 15 '23 at 08:52
  • @Flimm: `the same thing` as … what? the question was how to find information about key-combos like `x`. using :help is one way, using :*map to check current mappings to the actual function being called is another. – akira Feb 17 '23 at 06:23
  • ctrl-r is not the same thing as ctrl-right – Flimm Feb 17 '23 at 21:33