0

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. :)

1

1 Answer 1

4

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.

1
  • Hugh. I thought for sure it was something special. Didn't even consider this option. I won't accept your answer just yet, just in case, but if there's no other answer I'll be sure to accept yours. :)
    – greduan
    Commented May 23, 2014 at 23:24

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.