Reputation: 4938
I've found a feature, quite a while ago actually but only now am I interested in knowing what it does. It's the following:
nm <space> [space]
nn [space] <NOP>
nm [space]F :VimFiler<CR>
What exactly is this doing? What are the advantages of using this instead of just <space>
? Except that it seems to work as an alias, so you can change what [space]
means and that changes all the keybinds that are used by this.
How does this work? Official documentation or something that explains it in detail how it works would be more than appreciated. :)
Upvotes: 0
Views: 98
Reputation: 36011
There isn't anything special about [space]
. The first mapping makes it so that pressing Space is the same as having typed those characters. The second makes it so that typing [space]
on its own doesn't do anything (<NOP>
is special). The last makes it so that typing [space]F
does that command. You can see that this is true by actually pressing the keys [space]F
and seeing that it does it too. It seems kind of like a way to emulate the <Leader>
and <LocalLeader>
functionality, but IMO a rather poor way of doing it.
Upvotes: 4