-
Notifications
You must be signed in to change notification settings - Fork 64
/
Process.txt
84 lines (66 loc) · 2.81 KB
/
Process.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
*vital/Process.txt* Utilities for process.
Maintainer: tyru <[email protected]>
==============================================================================
CONTENTS *Vital.Process-contents*
INTRODUCTION |Vital.Process-introduction|
INTERFACE |Vital.Process-interface|
Functions |Vital.Process-functions|
==============================================================================
INTRODUCTION *Vital.Process-introduction*
*Vital.Process* provides utility functions which manipulates process.
Note: this module is pre-obsolete. Check if you can use |Vital.System.Process|
instead.
==============================================================================
INTERFACE *Vital.Process-interface*
------------------------------------------------------------------------------
FUNCTIONS *Vital.Process-functions*
spawn({command} [, {special}]) *Vital.Process.spawn()*
Execute program in the background from Vim. Always return an empty
string.
{command} is |List| or |String| to run as background process.
If {command} is a |List|, it'll |shellescape()| each argument.
If {command} is |String| and {special} was given and non-zero,
escape special characters.
Windows:
Using :!start , execute program without via cmd.exe.
Spawning 'expr' with 'noshellslash'
keep special characters from unwanted expansion.
(see :help shellescape())
Unix:
using :! , execute program in the background by shell.
See |shellescape()|'s {special} argument for the details.
iconv({expr}, {from}, {to}) *Vital.Process.iconv()*
|iconv()| wrapper for safety.
Built-in |iconv()| returns an empty string when the conversion
completely fails.
But this function won't return an original string not an empty string
when failure.
has_vimproc() *Vital.Process.has_vimproc()*
Returns non-zero if |vimproc| is installed, zero otherwise.
You can download the |vimproc| from
https://github.com/Shougo/vimproc.vim.
*Vital.Process.system()*
system({command} [, {input} [, {timeout}]])
system({command} [, {dict}])
Gets the output of the shell command {expr}.
This function calls |vimproc#system()| if |has_vimproc()| returns
non-zero, otherwise |system()|.
If {timeout} is specified, the command will be killed after {timeout}
milliseconds. Note that {timeout} is available only when
|has_vimproc()| returns non-zero.
Note NeoVim cannot use system() with '&',
Please See :h system() on NeoVim.
When the 2nd argument is Dictionary, you can specify more options.
{dict} structure is:
>
{dict} = {
use_vimproc: bool,
input: string,
timeout: bool,
background: bool,
}
get_last_status() *Vital.Process.get_last_status()*
Returns the result of the last shell command either via |vimproc| or
not.
==============================================================================
vim:tw=78:fo=tcq2mM:ts=8:ft=help:norl