Sunday, February 8, 2015

Re: vimscripting problem w/tabs and expanding width w/numbering option

On Sunday, February 8, 2015 at 5:59:28 PM UTC-6, L. A. Walsh wrote:
>
>     It sorta looks like both tabs are being brought up at the same time
>
> and a race condition might be happening, but the fact that it
>
> is very deterministic, leads me to believe something else is going on.
>

It can't be a race condition. Vim is single-threaded and will be processing one whole function at a time.

>
>
>     I thought g: vars were 'global across all buffs, but this seems
>
> to be behaving like g:added_numwth (*or*) &columns are not in-sync
>
> between the tabs?  Is that what is happening or am I missing some
>
> simpler explanation?
>

g: vars are global across all buffers, tabs, and windows just as you expect. 'columns' is also a global option so it will always be in sync between tabs.

I don't know of a simpler explanation for what you're seeing, but it's not due to you use of g: variables or tab pages, as far as I can tell.

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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: