On 20/01/11 11:17 AM, Asis Hallab wrote:
Dear all,
I want to set the localleader for some plugin (Vim-R-plugin).
Is it possible to set it in vimrc, or would I have to change the plugin-code
itself?
I mean, can I do something like this in vimrc:
let Vim-R-plugin maplocalleader = '_'
?
You cannot do this for a single plugin. All plugins share the same
mapleader and maplocalleader everywhere.
So this code would be perfectly appropriate in vimrc and would apply to
all plugins (that use <LocalLeader>):
:let maplocalleader = '_'
If you want to do this just for one plugin, then yes, you would have to
edit the plugin code.
Note that usually plugins will use <Leader> (mapleader) and
filetype-plugins will use <LocalLeader> (maplocalleader). Vim-R-plugin
is indeed a filetype-plugin, so it is correct for it to use
<LocalLeader>.
Ben.
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php