3

Despite there being no mention on the keystroke <Leader>l in my .vimrc, this combination opens the current fold on my installation of vim and gvim.

It's not mentioned under :map. Is it a standard thing or might it be due to a plug-in?

  • 1
    If your cursor is on a fold, pressing l will open it. I don't think the leader key does anything in this case. – EvergreenTree May 8 '15 at 13:09
  • 3
    Check the mapping by using :verbose <leader>l to see if there is a map. – jecxjo May 8 '15 at 13:18
13

If <Leader>lisn't mapped to anything, than this is effictivly the same as the motion l. And this will open your folds. If you don't want this, tune the 'foldopen' setting like this:

:set foldopen-=hor

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.