diff runtime/doc/eval.txt @ 13563:5923f64c8f5b

Update runtime files commit https://github.com/vim/vim/commit/ab943431d8fcd856008a025b0e5652dd4b8007fc Author: Bram Moolenaar <Bram@vim.org> Date: Thu Mar 29 18:27:07 2018 +0200 Update runtime files
author Christian Brabandt <cb@256bit.org>
date Thu, 29 Mar 2018 18:30:08 +0200
parents 1fd0f8392946
children ab89131d30e0
line wrap: on
line diff
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -1,4 +1,4 @@
-*eval.txt*	For Vim version 8.0.  Last change: 2018 Mar 20
+*eval.txt*	For Vim version 8.0.  Last change: 2018 Mar 23
 
 
 		  VIM REFERENCE MANUAL	  by Bram Moolenaar
@@ -8670,12 +8670,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