2

Wondering if there is a difference between

map <Leader>f x

and

map <leader>f x

in Vim scripts?

Why the variants?

mt3
  • 2,654
  • 4
  • 26
  • 29

2 Answers2

7

There is no difference—it's just case-insensitive. This works too:

map <lEaDeR>f x

The documentation uses <Leader>, so it's probably best to do the same.

derobert
  • 49,731
  • 15
  • 94
  • 124
0

No difference ... they are same.

Check this link What is the <leader> in a .vimrc file?

Community
  • 1
  • 1
Rahul
  • 76,197
  • 13
  • 71
  • 125