aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/eval.txt
diff options
context:
space:
mode:
authorwatiko <service@mail.watiko.net>2016-03-04 08:11:00 +0900
committerwatiko <service@mail.watiko.net>2016-03-29 21:41:37 +0900
commitce832238c85fe8fef2250ac4ec567d4a8d302537 (patch)
tree35099a31a5361858d2a147b5c4ef0d9953a58ee1 /runtime/doc/eval.txt
parentae686092f807adbbb578b8ae2c2200654f9df8c1 (diff)
downloadrneovim-ce832238c85fe8fef2250ac4ec567d4a8d302537.tar.gz
rneovim-ce832238c85fe8fef2250ac4ec567d4a8d302537.tar.bz2
rneovim-ce832238c85fe8fef2250ac4ec567d4a8d302537.zip
vim-patch:86ae720
Updated runtime files. https://github.com/vim/vim/commit/86ae720d7567fcbbe40f00cf136c797953f21038
Diffstat (limited to 'runtime/doc/eval.txt')
-rw-r--r--runtime/doc/eval.txt26
1 files changed, 23 insertions, 3 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index 0b2880ef03..024e8fbfe0 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -1,4 +1,4 @@
-*eval.txt* For Vim version 7.4. Last change: 2015 Jun 26
+*eval.txt* For Vim version 7.4. Last change: 2015 Jul 10
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1491,7 +1491,9 @@ v:hlsearch Variable that indicates whether search highlighting is on.
this variable to zero acts like the |:nohlsearch| command,
setting it to one acts like >
let &hlsearch = &hlsearch
-<
+< Note that the value is restored when returning from a
+ function. |function-search-undo|.
+
*v:insertmode* *insertmode-variable*
v:insertmode Used for the |InsertEnter| and |InsertChange| autocommand
events. Values:
@@ -5176,7 +5178,7 @@ readfile({fname} [, {binary} [, {max}]])
separated with CR will result in a single long line (unless a
NL appears somewhere).
All NUL characters are replaced with a NL character.
- When {binary/append} contains "b" binary mode is used:
+ When {binary} contains "b" binary mode is used:
- When the last line ends in a NL an extra empty list item is
added.
- No CR characters are removed.
@@ -6200,6 +6202,24 @@ strchars({expr} [, {skipcc}]) *strchars()*
When {skipcc} set to 1, Composing characters are ignored.
Also see |strlen()|, |strdisplaywidth()| and |strwidth()|.
+
+ {skipcc} is only available after 7.4.755. For backward
+ compatibility, you can define a wrapper function: >
+ if has("patch-7.4.755")
+ function s:strchars(str, skipcc)
+ return strchars(a:str, a:skipcc)
+ endfunction
+ else
+ function s:strchars(str, skipcc)
+ if a:skipcc
+ return strlen(substitute(a:str, ".", "x", "g"))
+ else
+ return strchars(a:str)
+ endif
+ endfunction
+ endif
+<
+
strdisplaywidth({expr}[, {col}]) *strdisplaywidth()*
The result is a Number, which is the number of display cells
String {expr} occupies on the screen when it starts at {col}.