fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

10K
active users

yaggadagga

crew - I need help with something. I have a few custom functions that I use in my config, but I want to take it a level higher. I want to set this function to run with a command, such as :RunFunc.

I can see plenty of tutorials on writing custom functions, but I can't seem to figure out how to execute a function with a custom command. Currently digging through some existing plugins to see what I can find....

@notnorm command! RunFunc call YourFunction()

@notnorm With arguments: command! -nargs=* Command call <SID>Function(<f-args>)