Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I searched a little for a global function that would act as the :g command but in a more Function-style.
Like the substitute command which has a function associated :
Do you know if such exists ?
No there is no such function and it would not make much sense. If you need to do something for each item in a list, you can loop around it.
Required, but never shown