2017-05-16 11:38 GMT+03:00 Ni Va <[email protected]>: > Hi, > > How to retrieve the result of this expression in a vimscript var > > let myvar = executable(prevline.',.s/PATTERN//gn') > > this seems to don't work. > > thank you!
I do not understand what “expression” you mean, but `executable` is for checking whether there is some executable e.g. for use in `system()`. Given that you are trying to feed it a VimL command I think you at least wanted `execute()`. > > -- > -- > 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 [email protected]. > For more options, visit https://groups.google.com/d/optout. -- -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
