Hacker News new | ask | show | jobs
by wavesounds 4673 days ago
Do lots of people use let mapleader = ',' instead of Ctrl?

Also does anyone see where they are setting the /// to comment? Commentary uses gcc and I don't see it in their vimrc.

6 comments

It's \\\ and it comes from the commentary plugin. It was the default mapping when it was released but it was changed a few months ago. \\\ is still available, though.

Yes, lots of people use <leader>something mappings because they offer a lot more flexibility than <C-something> and friends. What you use as mapleader is up to you, "," is simply the value suggested in the doc.

"," is kinda becoming the "default" key for leader. After multiple years of using it, it has become very natural.
After doing anything for multiple years of anything I'm sure it would feel natural.
I used to use comma, but then I discovered comma's default mapping is actually quite useful[1] so I switched back to the default '\'

1: http://vimdoc.sourceforge.net/htmldoc/motion.html#,

I've never heard of anyone uses ctrl as a leader. I do use comma myself.
if you use hhkb(http://farm4.staticflickr.com/3322/3599528588_ce3e08503f.jpg) layout, it's rather convenient to use Ctrl as leader.
I went crazy, and it's a bit more tricky to pull off, but `q` is my leader key. Haven't looked back.

P.S. I mapped `Q` to recording Macros, since the default use of `Q` is completely useless to me.

I keep `q` to record macros, but complement that with :noremap <Space> @q That way I can press `qq` to start recording, `q` to end, then just wack the spacebar to execute. I use it constantly.
comma is really useful as a leader and it's not so far away on the keyboard. No one I have heard of uses ctrl for leader(it would ruin a lot of ctrl-whatever commands) and by default the leader is a backslash.