Reply to message «Where is <localleader> defined?», 
sent 21:58:45 27 April 2011, Wednesday
by Steve Litt:

> Where is <localleader> defined?
It is surprising, but if you open `:h <localleader>' you will get desired 
answer.

> How would I define a similar variable
> called <voleader> so that it's available for use in various Vimscript
> programs?
<localleader> is not a variable, it is expanded to the value of a variable.
You can't define a new <...> expression without patching vim.

If you want to have a custom prefix, use `execute': instead of
    nnoremap <voleader>lhs rhs
use
    execute 'nnoremap' g:voleader.'lhs' 'rhs'
(note that though I use different strings for different arguments, spaces in 
lhs 
and g:voleader won't be escaped: I do this only for readability).

Original message:
> Hi all,
> 
> Where is <localleader> defined? How would I define a similar variable
> called <voleader> so that it's available for use in various Vimscript
> programs?
> 
> Thanks
> 
> SteveT
> 
> Steve Litt
> Recession Relief Package
> http://www.recession-relief.US
> Twitter: http://www.twitter.com/stevelitt

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to