diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-07-31 21:07:14 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-07-31 21:07:14 +0200 |
commit | 5477506a9f01d40fad2e8f0555bc37adee30478f (patch) | |
tree | afb8271b63c5813ea4f2dee83df994f33791fed5 /runtime/doc/if_ruby.txt | |
parent | 0e6bfb9b2eb108d96a49ac4f8dc638c2eefeda2b (diff) |
Update runtime files.
Diffstat (limited to 'runtime/doc/if_ruby.txt')
-rw-r--r-- | runtime/doc/if_ruby.txt | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/runtime/doc/if_ruby.txt b/runtime/doc/if_ruby.txt index de36c0131a..0eca0b6b66 100644 --- a/runtime/doc/if_ruby.txt +++ b/runtime/doc/if_ruby.txt @@ -1,4 +1,4 @@ -*if_ruby.txt* For Vim version 8.1. Last change: 2019 May 05 +*if_ruby.txt* For Vim version 8.1. Last change: 2019 Jul 21 VIM REFERENCE MANUAL by Shugo Maeda @@ -28,15 +28,19 @@ downloading Ruby there. :rub[y] {cmd} Execute Ruby command {cmd}. A command to try it out: > :ruby print "Hello" -:rub[y] << {endpattern} +:rub[y] << [endpattern] {script} {endpattern} Execute Ruby script {script}. - {endpattern} must NOT be preceded by any white space. - If {endpattern} is omitted, it defaults to a dot '.' - like for the |:append| and |:insert| commands. This - form of the |:ruby| command is mainly useful for + The {endpattern} after {script} must NOT be preceded + by any white space. + + If [endpattern] is omitted, it defaults to a dot '.' + like for the |:append| and |:insert| commands. + + This form of the |:ruby| command is mainly useful for including ruby code in vim scripts. + Note: This command doesn't work when the Ruby feature wasn't compiled in. To avoid errors, see |script-here|. |