aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-10-29 23:54:34 +0100
committerJustin M. Keyes <justinkz@gmail.com>2018-10-29 23:55:45 +0100
commit11bcd48fdaba0aa0ff7553503cb0977b39c0ad22 (patch)
tree4ea899d4ad6b87418889102abe0f88db01608c87 /runtime/doc
parent2c7ed420d93fdefe5734f2e9cf6b863119d412f3 (diff)
downloadrneovim-11bcd48fdaba0aa0ff7553503cb0977b39c0ad22.tar.gz
rneovim-11bcd48fdaba0aa0ff7553503cb0977b39c0ad22.tar.bz2
rneovim-11bcd48fdaba0aa0ff7553503cb0977b39c0ad22.zip
vim-patch:20aac6c11269
Update runtime files. https://github.com/vim/vim/commit/20aac6c1126988339611576d425965a25a777658
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/if_pyth.txt12
-rw-r--r--runtime/doc/options.txt2
2 files changed, 14 insertions, 0 deletions
diff --git a/runtime/doc/if_pyth.txt b/runtime/doc/if_pyth.txt
index dfa1d6e212..38a78294b7 100644
--- a/runtime/doc/if_pyth.txt
+++ b/runtime/doc/if_pyth.txt
@@ -63,6 +63,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}
Execute the Python script in {file}. The whole
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt
index 69bfa44b0a..09e699925d 100644
--- a/runtime/doc/options.txt
+++ b/runtime/doc/options.txt
@@ -691,6 +691,8 @@ A jump table for the options with a short description can be found at |Q_op|.
'{A-Z0-9}, or `{A-Z0-9} command takes one to another file.
Note that for some commands the 'autowrite' option is not used, see
'autowriteall' for that.
+ Some buffers will not be written, specifically when 'buttype' is
+ "nowrite", "nofile", "terminal" or "prompt".
*'autowriteall'* *'awa'* *'noautowriteall'* *'noawa'*
'autowriteall' 'awa' boolean (default off)