Sunday, November 29, 2009

Re: & xmledit

Tuo Pe schrieb:
> --- On Fri, 11/27/09, Andy Wokula <anwoku@yahoo.de> wrote:
>
>> :let maplocalleader = ','
>>
>> is a setting for the vimrc: controlled by the user, constant
>> throughout the session.
>
> So this means that I should use mapleader instead of maplocalleader?
> And that I should set in in .vimrc, not in .vim/ftplugin/ files etc?
>
> Tuomas

No, you should stay with maplocalleader, but just define it in the
vimrc.


g:mapleader -> <Leader>
g:maplocalleader -> <LocalLeader>

It is a convention that global plugins should define mappings with
<Leader> and filetype plugins with <LocalLeader>.

:h <Leader>
:h <LocalLeader>

--
Andy

--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

No comments: