Want to highlight a helpful answer? Upvote!

Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

In vim, leader key won't work

I've searched on internet, and there are people asking a same question but without satisfying answer. So, I'm trying my luck here.


I'm using vim in terminal. And the leader key won't work. I've tried to remap it to ",", only to find it not working as well.

Each time I type the leader key, it beeps as if it was an empty map, however when I "echo mapleader", it shows my customized map leader ",". So what's wrong? Why doesn't map leader working? I mean, I used to work on linux, and I know it should work on bash.

MacBook Air (13-inch, Mid 2012), OS X Mountain Lion (10.8.2)

Posted on Feb 26, 2013 9:50 AM

Reply
Question marked as Best reply

Posted on Feb 26, 2013 10:20 AM

Works here. Maybe your timeout is to short?

What commands do you have mapped using the Leader key?


With this in a .vimrc file

:let mapleader = ","

:map <Leader>A another line <Esc>


,A inserts another line in the file

4 replies

In vim, leader key won't work

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.