How do I call external programs from a Vim function?

There are several ways to call external programs from a Vim function. You can use the builtin system() function to invoke external programs and get the result:

    :let output = system("ls")

You can also use “!” ex-command to run an external command.

Comments (1)


Pepsh Pepshinsky

Let’s see you to :help viminfo-file-name (option -i) :set viminfofile=NONE


Speak Your Mind