diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-04-29 08:12:32 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2023-04-29 09:20:52 +0800 |
commit | 4bcf8c15b3079ca72d6557890b50b35565fcd577 (patch) | |
tree | cc6a986bd307aec948e1f696f6755c5874e1b451 /runtime/doc/if_ruby.txt | |
parent | 291fd767e3979b25146c32115eacc3c2f8e1e517 (diff) | |
download | rneovim-4bcf8c15b3079ca72d6557890b50b35565fcd577.tar.gz rneovim-4bcf8c15b3079ca72d6557890b50b35565fcd577.tar.bz2 rneovim-4bcf8c15b3079ca72d6557890b50b35565fcd577.zip |
vim-patch:8.2.0578: heredoc for interfaces does not support "trim"
Problem: Heredoc for interfaces does not support "trim".
Solution: Update the script heredoc support to be same as the :let command.
(Yegappan Lakshmanan, closes vim/vim#5916)
https://github.com/vim/vim/commit/6c2b7b8055b96463f78abb70f58c4c6d6d4b9d55
Diffstat (limited to 'runtime/doc/if_ruby.txt')
-rw-r--r-- | runtime/doc/if_ruby.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/doc/if_ruby.txt b/runtime/doc/if_ruby.txt index d88f59eb73..a5aaac1a5f 100644 --- a/runtime/doc/if_ruby.txt +++ b/runtime/doc/if_ruby.txt @@ -19,15 +19,15 @@ downloading Ruby there. :rub[y] {cmd} Execute Ruby command {cmd}. A command to try it out: > :ruby print "Hello" -:rub[y] << [endmarker] +:rub[y] << [trim] [{endmarker}] {script} {endmarker} Execute Ruby script {script}. - The {endmarker} after {script} must NOT be preceded by - any white space. If [endmarker] is omitted, it defaults to a dot '.' - like for the |:append| and |:insert| commands. + like for the |:append| and |:insert| commands. Refer + to |:let-heredoc| for more information. + This form of the |:ruby| command is mainly useful for including ruby code in vim scripts. |