aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/job_control.txt
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-09-15 10:12:12 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-09-15 10:12:12 -0300
commit3ec4e18cd00700abdffb564835dd4cd7e68a0093 (patch)
tree6010e814bb0d10681aaf1369b664a041d8aab2e4 /runtime/doc/job_control.txt
parent5d35484203cb950a7ba0ed0d9428cb58b37212ff (diff)
parente0beb6d0c4b5f0b573f09418b5e02b1ba5eeaeb9 (diff)
downloadrneovim-3ec4e18cd00700abdffb564835dd4cd7e68a0093.tar.gz
rneovim-3ec4e18cd00700abdffb564835dd4cd7e68a0093.tar.bz2
rneovim-3ec4e18cd00700abdffb564835dd4cd7e68a0093.zip
Merge PR #1175 'Some fixes to nvim initial documentation'
Diffstat (limited to 'runtime/doc/job_control.txt')
-rw-r--r--runtime/doc/job_control.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/runtime/doc/job_control.txt b/runtime/doc/job_control.txt
index c76b4f460b..49ee3889bc 100644
--- a/runtime/doc/job_control.txt
+++ b/runtime/doc/job_control.txt
@@ -66,14 +66,14 @@ nvim instance:
<
Here's what is happening:
-- Two bash instances are spawned |jobstart()| and their stdin/stdout/stderr
+- Two bash instances are spawned by |jobstart()| and their stdin/stdout/stderr
are connected to nvim.
- The first shell is idle, waiting to read commands from it's stdin
- The second shell is passed the -c option to execute a command and exit. In
our case, the command is a for loop that will print numbers and exit after
a while.
- The JobHandler function is called by the JobActivity autocommand(notice how
- it the shell* pattern matches the `shell1` and `shell2` names passed to
+ the shell* pattern matches the `shell1` and `shell2` names passed to
|jobstart()|), and it takes care of displaying stdout/stderr received from
the shells.
- The v:job_data is an array set by the JobActivity event. It has the
@@ -86,9 +86,9 @@ Here's what is happening:
To send data to the job's stdin, one can use the |jobsend()| function, like
this:
>
- :call jobsend(job1, 'ls\n')<cr>
- :call jobsend(job1, 'invalid-command\n')<cr>
- :call jobsend(job1, 'exit\n')<cr>
+ :call jobsend(job1, 'ls\n')
+ :call jobsend(job1, 'invalid-command\n')
+ :call jobsend(job1, 'exit\n')
<
A job may be killed at any time with the |jobstop()| function:
>