Thursday, June 24, 2021

Re: equivalent of get() for a string ?

Shameless plug: my GetVar script (https://www.vim.org/scripts/script.php?script_id=353) does this.

On Thu, Jun 24, 2021 at 3:49 PM Marc Chantreux <eiro@phear.org> wrote:
hello people,

I would like this

    if exists('g:purescript_update_path')
        if g:purescript_update_path
            call PurescriptUpdatePath()
        endif
    endif

To be something like

    if get('g:purescript_update_path',v:false)
        call PurescriptUpdatePath()
    endif

but get() doesn't work with strings and i don't find something close.
did i miss something from the doc ?

regards,
marc



--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/YNTfT1yVXYWRHawY%40prometheus.u-strasbg.fr.


--
 
Salman

I, too, shall something make and glory in the making.

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CANuxnEdHYCsNq2kiSko%3DMKYPCCobX9wrzczhkF3t-z1FUResyw%40mail.gmail.com.

No comments: