Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8414703
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T01:14:01+00:00 2026-06-10T01:14:01+00:00

I started using a plugin that conflicts with my existing maps, but instead of

  • 0

I started using a plugin that conflicts with my existing maps, but instead of remapping all of it’s maps, I just want to add a prefix. I thought I’d be able to do this with LocalLeader.

Vimdoc says:

<LocalLeader> is just like <Leader>, except that it uses
“maplocalleader” instead of “mapleader”. <LocalLeader> is to be used
for mappings which are local to a buffer.

It seems that the only way to set localleader is to set a global variable (the docs don’t mention this, but b:maplocalleader didn’t work):

let maplocalleader = '\\'

And I don’t see how I’d cleanly unset that variable (an autocmd that clears it after plugins are setup!?)

Is there a way to do this? Or is LocalLeader only to give one global prefix and one filetype-specific prefix?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T01:14:02+00:00Added an answer on June 10, 2026 at 1:14 am

    Your last hunch is correct. If the plugin uses <Leader> (and it should unless it’s a filetype plugin), there’s no use in messing with maplocalleader.

    Remapping is canonically done via <Plug> mappings, which the plugin hopefully offers. Some plugins do define a lot of similar mappings, some of those define a g:pluginname_mappingprefix (or so) variable to save you from having to remap all mappings individually. If your plugin doesn’t, maybe write a suggestion / patch to the plugin author.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've just started using the NERDTree vim plugin for my project. I can't find
OK so I just started using sammy.js , I don't it very well but
I have just started the Hello World App using Blackberry Eclipse Plugin. I have
I started using Chop Slider, an amazing slideshow jquery plugin ( http://www.idangero.us/cs/ ) but
I just started using Colorbox modal plugin and cannot figure out how to get
I just started using Maven and I read that plugins are additional components that
I've just started using smarty but i have some problems to find a proper
I've been using BBEdit for years, but I've just started using TextMate because I
I've just started using Jenkins today, so it's entirely possible that I've missed something
I have just started using maven-glassfish-plugin. I got the start-domain goal working. However when

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.