Search notes:

vim script: system

" ..\run_.bat system
"
"
" Use -> executable() to determine if a command
" can be executed with system.

redir > system.out

let s:dir = system('dir /b')

echo s:dir

echo 'v:shell_error = ' . v:shell_error

let s:foo = system('inexisting-command')
echo 'v:shell_error = ' . v:shell_error

q
Github repository about-vim, path: /vimscript/functions/system.vim

See also

Vim: built in functions
VIM script

Index