aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-10-29 06:44:21 +0100
committerJustin M. Keyes <justinkz@gmail.com>2018-10-29 06:50:47 +0100
commite2fb230c3a776cb3b7ccf3087411e376f3f93ef4 (patch)
tree58ceeb02db05cef059e5d437497dc80f6eb34e7f /runtime/doc
parent5c4a4217352edf82d32c03e6bec8c64b8f16a28c (diff)
downloadrneovim-e2fb230c3a776cb3b7ccf3087411e376f3f93ef4.tar.gz
rneovim-e2fb230c3a776cb3b7ccf3087411e376f3f93ef4.tar.bz2
rneovim-e2fb230c3a776cb3b7ccf3087411e376f3f93ef4.zip
vim-patch:ab943431d8fc
Update runtime files https://github.com/vim/vim/commit/ab943431d8fcd856008a025b0e5652dd4b8007fc
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/editing.txt9
-rw-r--r--runtime/doc/eval.txt10
-rw-r--r--runtime/doc/quickfix.txt12
3 files changed, 18 insertions, 13 deletions
diff --git a/runtime/doc/editing.txt b/runtime/doc/editing.txt
index 75db5a529c..3c36d8a531 100644
--- a/runtime/doc/editing.txt
+++ b/runtime/doc/editing.txt
@@ -376,6 +376,15 @@ On Unix and a few other systems you can also use backticks for the file name
argument, for example: >
:next `find . -name ver\\*.c -print`
:view `ls -t *.patch \| head -n1`
+Vim will run the command in backticks using the 'shell' and use the standard
+output as argument for the given Vim command (error messages from the shell
+command will be discarded).
+To see what shell command Vim is running, set the 'verbose' option to 4. When
+the shell command returns a non-zero exit code, an error message will be
+displayed and the Vim command will be aborted. To avoid this make the shell
+always return zero like so: >
+ :next `find . -name ver\\*.c -print \|\| true`
+
The backslashes before the star are required to prevent the shell from
expanding "ver*.c" prior to execution of the find program. The backslash
before the shell pipe symbol "|" prevents Vim from parsing it as command
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index 629a91b0c4..9d84ff59c6 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -8044,12 +8044,12 @@ trim({text}[, {mask}]) *trim()*
This code deals with multibyte characters properly.
Examples: >
- echo trim(" \r\t\t\r RESERVE \t \t\n\x0B\x0B")."_TAIL"
+ echo trim(" some text ")
+< returns "some text" >
+ echo trim(" \r\t\t\r RESERVE \t\n\x0B\xA0") . "_TAIL"
< returns "RESERVE_TAIL" >
- echo trim("needrmvRESERVEnnneeedddrrmmmmvv", "ednmrv")
-< returns "RESERVE" >
- echo trim("rm<blob1><blob2><any_chars>rrmm<blob1><blob2><blob2>", "rm<blob1><blob2>")
-< returns "any_chas"
+ echo trim("rm<Xrm<>X>rrm", "rm<>")
+< returns "Xrm<>X" (characters in the middle are not removed)
trunc({expr}) *trunc()*
Return the largest integral value with magnitude less than or
diff --git a/runtime/doc/quickfix.txt b/runtime/doc/quickfix.txt
index 6939dd6836..8150121038 100644
--- a/runtime/doc/quickfix.txt
+++ b/runtime/doc/quickfix.txt
@@ -358,8 +358,7 @@ EXECUTE A COMMAND IN ALL THE BUFFERS IN QUICKFIX OR LOCATION LIST:
autocommand event is disabled by adding it to
'eventignore'. This considerably speeds up editing
each buffer.
- {not in Vi} {not available when compiled without the
- |+listcmds| feature}
+ {not in Vi}
Also see |:bufdo|, |:tabdo|, |:argdo|, |:windo|,
|:ldo|, |:cfdo| and |:lfdo|.
@@ -372,8 +371,7 @@ EXECUTE A COMMAND IN ALL THE BUFFERS IN QUICKFIX OR LOCATION LIST:
:{cmd}
etc.
< Otherwise it works the same as `:cdo`.
- {not in Vi} {not available when compiled without the
- |+listcmds| feature}
+ {not in Vi}
*:ldo*
:ld[o][!] {cmd} Execute {cmd} in each valid entry in the location list
@@ -386,8 +384,7 @@ EXECUTE A COMMAND IN ALL THE BUFFERS IN QUICKFIX OR LOCATION LIST:
etc.
< Only valid entries in the location list are used.
Otherwise it works the same as `:cdo`.
- {not in Vi} {not available when compiled without the
- |+listcmds| feature}
+ {not in Vi}
*:lfdo*
:lfdo[!] {cmd} Execute {cmd} in each file in the location list for
@@ -399,8 +396,7 @@ EXECUTE A COMMAND IN ALL THE BUFFERS IN QUICKFIX OR LOCATION LIST:
:{cmd}
etc.
< Otherwise it works the same as `:ldo`.
- {not in Vi} {not available when compiled without the
- |+listcmds| feature}
+ {not in Vi}
=============================================================================
2. The error window *quickfix-window*