VIM: How to pass arguments to functions from user commands? April 25, 2023 by Tarik Use <f-args>: command! -nargs=1 MyCommand call s:MyFunc(<f-args>)