From 22d90217c6774c7b8c5ee79366f03b8ab41bd029 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sun, 10 Aug 2025 16:23:48 +0800 Subject: [PATCH] vim-patch:partial:fc3c204: runtime(doc): Fix style and typos in builtin.txt and usr_41.txt (#35286) - Reformat parts to fit into 80 column window. - Fix example with mandatory call with a range. https://github.com/vim/vim/discussions/17950#discussioncomment-14055687 - Remove some duplicate information closes: vim/vim#17949 https://github.com/vim/vim/commit/fc3c204bbe48d34bded70d2b190c3b1e1f9f89b7 Function list changes only. Co-authored-by: veotos --- runtime/doc/usr_41.txt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/runtime/doc/usr_41.txt b/runtime/doc/usr_41.txt index cb0b8a1e1b..70c90057de 100644 --- a/runtime/doc/usr_41.txt +++ b/runtime/doc/usr_41.txt @@ -598,7 +598,7 @@ String manipulation: *string-functions* str2list() get list of numbers from a string str2nr() convert a string to a Number str2float() convert a string to a Float - printf() format a string according to % items + printf() format a string according to "%" items escape() escape characters in a string with a '\' shellescape() escape a string for use with a shell command fnameescape() escape a file name for use with a Vim command @@ -676,9 +676,8 @@ List manipulation: *list-functions* range() return a List with a sequence of numbers string() String representation of a List call() call a function with List as arguments - index() index of a value in a List or Blob - indexof() index in a List or Blob where an expression - evaluates to true + index() index of a value in a List + indexof() index in a List where an expression is true max() maximum value in a List min() minimum value in a List count() count number of times a value appears in a List @@ -738,6 +737,8 @@ Blob manipulation: *blob-functions* blob2list() get a list of numbers from a blob list2blob() get a blob from a list of numbers reverse() reverse the order of numbers in a blob + index() index of a value in a Blob + indexof() index in a Blob where an expression is true Other computation: *bitwise-function* and() bitwise AND