Update runtime files.

This commit is contained in:
Bram Moolenaar
2018-09-02 21:07:30 +02:00
parent acca8df9d4
commit 20aac6c112
19 changed files with 504 additions and 338 deletions

View File

@ -81,6 +81,18 @@ Examples:
>
:pydo return "%s\t%d" % (line[::-1], len(line))
:pydo if line: return "%4d: %s" % (linenr, line)
<
One can use `:pydo` in possible conjunction with `:py` to filter a range using
python. For example: >
:py3 << EOF
needle = vim.eval('@a')
replacement = vim.eval('@b')
def py_vim_string_replace(str):
return str.replace(needle, replacement)
EOF
:'<,'>py3do return py_vim_string_replace(line)
<
*:pyfile* *:pyf*
:[range]pyf[ile] {file}