comparison runtime/doc/eval.txt @ 1754:28d0c20ad8a0 v7.2.051

updated for version 7.2-051
author vimboss
date Fri, 28 Nov 2008 10:01:10 +0000
parents 5a7384b9ca66
children 0c6c64edcbe0
comparison
equal deleted inserted replaced
1753:5098908178cd 1754:28d0c20ad8a0
1 *eval.txt* For Vim version 7.2. Last change: 2008 Nov 02 1 *eval.txt* For Vim version 7.2. Last change: 2008 Nov 27
2 2
3 3
4 VIM REFERENCE MANUAL by Bram Moolenaar 4 VIM REFERENCE MANUAL by Bram Moolenaar
5 5
6 6
1704 eventhandler( ) Number TRUE if inside an event handler 1704 eventhandler( ) Number TRUE if inside an event handler
1705 executable( {expr}) Number 1 if executable {expr} exists 1705 executable( {expr}) Number 1 if executable {expr} exists
1706 exists( {expr}) Number TRUE if {expr} exists 1706 exists( {expr}) Number TRUE if {expr} exists
1707 extend({expr1}, {expr2} [, {expr3}]) 1707 extend({expr1}, {expr2} [, {expr3}])
1708 List/Dict insert items of {expr2} into {expr1} 1708 List/Dict insert items of {expr2} into {expr1}
1709 expand( {expr}) String expand special keywords in {expr} 1709 expand( {expr} [, {flag}]) String expand special keywords in {expr}
1710 feedkeys( {string} [, {mode}]) Number add key sequence to typeahead buffer 1710 feedkeys( {string} [, {mode}]) Number add key sequence to typeahead buffer
1711 filereadable( {file}) Number TRUE if {file} is a readable file 1711 filereadable( {file}) Number TRUE if {file} is a readable file
1712 filewritable( {file}) Number TRUE if {file} is a writable file 1712 filewritable( {file}) Number TRUE if {file} is a writable file
1713 filter( {expr}, {string}) List/Dict remove items from {expr} where 1713 filter( {expr}, {string}) List/Dict remove items from {expr} where
1714 {string} is 0 1714 {string} is 0
1756 gettabwinvar( {tabnr}, {winnr}, {name}) 1756 gettabwinvar( {tabnr}, {winnr}, {name})
1757 any {name} in {winnr} in tab page {tabnr} 1757 any {name} in {winnr} in tab page {tabnr}
1758 getwinposx() Number X coord in pixels of GUI Vim window 1758 getwinposx() Number X coord in pixels of GUI Vim window
1759 getwinposy() Number Y coord in pixels of GUI Vim window 1759 getwinposy() Number Y coord in pixels of GUI Vim window
1760 getwinvar( {nr}, {varname}) any variable {varname} in window {nr} 1760 getwinvar( {nr}, {varname}) any variable {varname} in window {nr}
1761 glob( {expr}) String expand file wildcards in {expr} 1761 glob( {expr} [, {flag}]) String expand file wildcards in {expr}
1762 globpath( {path}, {expr}) String do glob({expr}) for all dirs in {path} 1762 globpath( {path}, {expr} [, {flag}])
1763 String do glob({expr}) for all dirs in {path}
1763 has( {feature}) Number TRUE if feature {feature} supported 1764 has( {feature}) Number TRUE if feature {feature} supported
1764 has_key( {dict}, {key}) Number TRUE if {dict} has entry {key} 1765 has_key( {dict}, {key}) Number TRUE if {dict} has entry {key}
1765 haslocaldir() Number TRUE if current window executed |:lcd| 1766 haslocaldir() Number TRUE if current window executed |:lcd|
1766 hasmapto( {what} [, {mode} [, {abbr}]]) 1767 hasmapto( {what} [, {mode} [, {abbr}]])
1767 Number TRUE if mapping to {what} exists 1768 Number TRUE if mapping to {what} exists
3284 Like |gettabwinvar()| for the current tabpage. 3285 Like |gettabwinvar()| for the current tabpage.
3285 Examples: > 3286 Examples: >
3286 :let list_is_on = getwinvar(2, '&list') 3287 :let list_is_on = getwinvar(2, '&list')
3287 :echo "myvar = " . getwinvar(1, 'myvar') 3288 :echo "myvar = " . getwinvar(1, 'myvar')
3288 < 3289 <
3289 *glob()* 3290 glob({expr} [, {flag}]) *glob()*
3290 glob({expr}) Expand the file wildcards in {expr}. See |wildcards| for the 3291 Expand the file wildcards in {expr}. See |wildcards| for the
3291 use of special characters. 3292 use of special characters.
3292 The result is a String. 3293 The result is a String.
3293 When there are several matches, they are separated by <NL> 3294 When there are several matches, they are separated by <NL>
3294 characters. 3295 characters.
3295 The 'wildignore' option applies: Names matching one of the 3296 Unless the optional {flag} argument is given and is non-zero,
3296 patterns in 'wildignore' will be skipped. 3297 the 'suffixes' and 'wildignore' options apply: Names matching
3298 one of the patterns in 'wildignore' will be skipped and
3299 'suffixes' affect the ordering of matches.
3297 If the expansion fails, the result is an empty string. 3300 If the expansion fails, the result is an empty string.
3298 A name for a non-existing file is not included. 3301 A name for a non-existing file is not included.
3299 3302
3300 For most systems backticks can be used to get files names from 3303 For most systems backticks can be used to get files names from
3301 any external command. Example: > 3304 any external command. Example: >
3305 item per line. Spaces inside an item are allowed. 3308 item per line. Spaces inside an item are allowed.
3306 3309
3307 See |expand()| for expanding special Vim variables. See 3310 See |expand()| for expanding special Vim variables. See
3308 |system()| for getting the raw output of an external command. 3311 |system()| for getting the raw output of an external command.
3309 3312
3310 globpath({path}, {expr}) *globpath()* 3313 globpath({path}, {expr} [, {flag}]) *globpath()*
3311 Perform glob() on all directories in {path} and concatenate 3314 Perform glob() on all directories in {path} and concatenate
3312 the results. Example: > 3315 the results. Example: >
3313 :echo globpath(&rtp, "syntax/c.vim") 3316 :echo globpath(&rtp, "syntax/c.vim")
3314 < {path} is a comma-separated list of directory names. Each 3317 < {path} is a comma-separated list of directory names. Each
3315 directory name is prepended to {expr} and expanded like with 3318 directory name is prepended to {expr} and expanded like with
3316 glob(). A path separator is inserted when needed. 3319 |glob()|. A path separator is inserted when needed.
3317 To add a comma inside a directory name escape it with a 3320 To add a comma inside a directory name escape it with a
3318 backslash. Note that on MS-Windows a directory may have a 3321 backslash. Note that on MS-Windows a directory may have a
3319 trailing backslash, remove it if you put a comma after it. 3322 trailing backslash, remove it if you put a comma after it.
3320 If the expansion fails for one of the directories, there is no 3323 If the expansion fails for one of the directories, there is no
3321 error message. 3324 error message.
3322 The 'wildignore' option applies: Names matching one of the 3325 Unless the optional {flag} argument is given and is non-zero,
3323 patterns in 'wildignore' will be skipped. 3326 the 'suffixes' and 'wildignore' options apply: Names matching
3327 one of the patterns in 'wildignore' will be skipped and
3328 'suffixes' affect the ordering of matches.
3324 3329
3325 The "**" item can be used to search in a directory tree. 3330 The "**" item can be used to search in a directory tree.
3326 For example, to find all "README.txt" files in the directories 3331 For example, to find all "README.txt" files in the directories
3327 in 'runtimepath' and below: > 3332 in 'runtimepath' and below: >
3328 :echo globpath(&rtp, "**/README.txt") 3333 :echo globpath(&rtp, "**/README.txt")