comparison runtime/doc/eval.txt @ 13482:9eebe457eb3c

Update runtime files. Convert a couple of help files to utf-8. commit https://github.com/vim/vim/commit/98ef233e14faaaf42e0342da1803d493ce0337b2 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Mar 18 14:44:37 2018 +0100 Update runtime files. Convert a couple of help files to utf-8.
author Christian Brabandt <cb@256bit.org>
date Sun, 18 Mar 2018 15:00:07 +0100
parents 33eea5ce5415
children a4a559e08798
comparison
equal deleted inserted replaced
13481:cd85b03c9fe2 13482:9eebe457eb3c
1 *eval.txt* For Vim version 8.0. Last change: 2018 Mar 10 1 *eval.txt* For Vim version 8.0. Last change: 2018 Mar 18
2 2
3 3
4 VIM REFERENCE MANUAL by Bram Moolenaar 4 VIM REFERENCE MANUAL by Bram Moolenaar
5 5
6 6
2190 gettabvar({nr}, {varname} [, {def}]) 2190 gettabvar({nr}, {varname} [, {def}])
2191 any variable {varname} in tab {nr} or {def} 2191 any variable {varname} in tab {nr} or {def}
2192 gettabwinvar({tabnr}, {winnr}, {name} [, {def}]) 2192 gettabwinvar({tabnr}, {winnr}, {name} [, {def}])
2193 any {name} in {winnr} in tab page {tabnr} 2193 any {name} in {winnr} in tab page {tabnr}
2194 getwininfo([{winid}]) List list of windows 2194 getwininfo([{winid}]) List list of windows
2195 getwinpos([{tmeout}]) List X and Y coord in pixels of the Vim window 2195 getwinpos([{timeout}]) List X and Y coord in pixels of the Vim window
2196 getwinposx() Number X coord in pixels of the Vim window 2196 getwinposx() Number X coord in pixels of the Vim window
2197 getwinposy() Number Y coord in pixels of the Vim window 2197 getwinposy() Number Y coord in pixels of the Vim window
2198 getwinvar({nr}, {varname} [, {def}]) 2198 getwinvar({nr}, {varname} [, {def}])
2199 any variable {varname} in window {nr} 2199 any variable {varname} in window {nr}
2200 glob({expr} [, {nosuf} [, {list} [, {alllinks}]]]) 2200 glob({expr} [, {nosuf} [, {list} [, {alllinks}]]])
3170 Return number value of the first char in {expr}. Examples: > 3170 Return number value of the first char in {expr}. Examples: >
3171 char2nr(" ") returns 32 3171 char2nr(" ") returns 32
3172 char2nr("ABC") returns 65 3172 char2nr("ABC") returns 65
3173 < When {utf8} is omitted or zero, the current 'encoding' is used. 3173 < When {utf8} is omitted or zero, the current 'encoding' is used.
3174 Example for "utf-8": > 3174 Example for "utf-8": >
3175 char2nr("á") returns 225 3175 char2nr("á") returns 225
3176 char2nr("á"[0]) returns 195 3176 char2nr("á"[0]) returns 195
3177 < With {utf8} set to 1, always treat as utf-8 characters. 3177 < With {utf8} set to 1, always treat as utf-8 characters.
3178 A combining character is a separate character. 3178 A combining character is a separate character.
3179 |nr2char()| does the opposite. 3179 |nr2char()| does the opposite.
3180 3180
3181 cindent({lnum}) *cindent()* 3181 cindent({lnum}) *cindent()*
9234 visual Compiled with Visual mode. 9234 visual Compiled with Visual mode.
9235 visualextra Compiled with extra Visual mode commands. 9235 visualextra Compiled with extra Visual mode commands.
9236 |blockwise-operators|. 9236 |blockwise-operators|.
9237 vms VMS version of Vim. 9237 vms VMS version of Vim.
9238 vreplace Compiled with |gR| and |gr| commands. 9238 vreplace Compiled with |gR| and |gr| commands.
9239 vtp Compiled for vcon support |+vtp| (check vcon to find
9240 out if it works in the current console)).
9239 wildignore Compiled with 'wildignore' option. 9241 wildignore Compiled with 'wildignore' option.
9240 wildmenu Compiled with 'wildmenu' option. 9242 wildmenu Compiled with 'wildmenu' option.
9241 win32 Win32 version of Vim (MS-Windows 95 and later, 32 or 9243 win32 Win32 version of Vim (MS-Windows 95 and later, 32 or
9242 64 bits) 9244 64 bits)
9243 win32unix Win32 version of Vim, using Unix files (Cygwin) 9245 win32unix Win32 version of Vim, using Unix files (Cygwin)
9472 may be larger. 9474 may be larger.
9473 9475
9474 It is also possible to define a function without any arguments. You must 9476 It is also possible to define a function without any arguments. You must
9475 still supply the () then. 9477 still supply the () then.
9476 9478
9477 It is allowed to define another function inside a function 9479 It is allowed to define another function inside a function body.
9478 body.
9479 9480
9480 *local-variables* 9481 *local-variables*
9481 Inside a function local variables can be used. These will disappear when the 9482 Inside a function local variables can be used. These will disappear when the
9482 function returns. Global variables need to be accessed with "g:". 9483 function returns. Global variables need to be accessed with "g:".
9483 9484