Sunday, November 4, 2012

Re: sourcing functions in file with has gui_running from .vimrc

On Sun, Nov 4, 2012 at 1:06 AM, Marcin Szamotulski <mszamot@gmail.com> wrote:
> On 23:40 Sat 03 Nov , Chris Lott wrote:
>
> The way to set an option from a value returned by a function is:
>
> let &guitabltooltip=GuiTabToolTip()
>
> if you want to set local value (like setlocal does) you could use:
>
> let &l:guitabtooltip=GuiTabToolTip()
>
> You can read about it in ":help :let-&". You can also use the short
> name of an option. &guitabtooltip is just a VimL variable. There is
> also &g:guitabtooltip which will work like using the :setglobal command.

Thanks, but I'm still not understanding. If I use

let &guitablabel=GuiTabTabLabel()

in my mygfuncs.vim file, I get an error:

E714: list required

If I use
let &guitabtooltip=%{GuiTabToolTip()}

I get an invalid expression error.

So I guess I don't understand how I use your suggestions in the
included mygfuncs.vim file so that it will work without having to
source my .vimrc a second time.

c
--
Chris Lott <chris@chrislott.org>

--
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

No comments:

Post a Comment