Mercurial > vim
comparison runtime/doc/eval.txt @ 3398:d1096a4e96bd v7.3.465
updated for version 7.3.465
Problem: Cannot get file name with newline from glob().
Solution: Add argument to glob() and expand() to indicate they must return a
list. (Christian Brabandt)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 07 Mar 2012 19:18:23 +0100 |
parents | b7811ab264bf |
children | 94601b379f38 |
comparison
equal
deleted
inserted
replaced
3397:5077b4eb0d61 | 3398:d1096a4e96bd |
---|---|
1744 executable( {expr}) Number 1 if executable {expr} exists | 1744 executable( {expr}) Number 1 if executable {expr} exists |
1745 exists( {expr}) Number TRUE if {expr} exists | 1745 exists( {expr}) Number TRUE if {expr} exists |
1746 extend( {expr1}, {expr2} [, {expr3}]) | 1746 extend( {expr1}, {expr2} [, {expr3}]) |
1747 List/Dict insert items of {expr2} into {expr1} | 1747 List/Dict insert items of {expr2} into {expr1} |
1748 exp( {expr}) Float exponential of {expr} | 1748 exp( {expr}) Float exponential of {expr} |
1749 expand( {expr} [, {flag}]) String expand special keywords in {expr} | 1749 expand( {expr} [, {nosuf} [, {list}]]) |
1750 any expand special keywords in {expr} | |
1750 feedkeys( {string} [, {mode}]) Number add key sequence to typeahead buffer | 1751 feedkeys( {string} [, {mode}]) Number add key sequence to typeahead buffer |
1751 filereadable( {file}) Number TRUE if {file} is a readable file | 1752 filereadable( {file}) Number TRUE if {file} is a readable file |
1752 filewritable( {file}) Number TRUE if {file} is a writable file | 1753 filewritable( {file}) Number TRUE if {file} is a writable file |
1753 filter( {expr}, {string}) List/Dict remove items from {expr} where | 1754 filter( {expr}, {string}) List/Dict remove items from {expr} where |
1754 {string} is 0 | 1755 {string} is 0 |
1798 gettabwinvar( {tabnr}, {winnr}, {name}) | 1799 gettabwinvar( {tabnr}, {winnr}, {name}) |
1799 any {name} in {winnr} in tab page {tabnr} | 1800 any {name} in {winnr} in tab page {tabnr} |
1800 getwinposx() Number X coord in pixels of GUI Vim window | 1801 getwinposx() Number X coord in pixels of GUI Vim window |
1801 getwinposy() Number Y coord in pixels of GUI Vim window | 1802 getwinposy() Number Y coord in pixels of GUI Vim window |
1802 getwinvar( {nr}, {varname}) any variable {varname} in window {nr} | 1803 getwinvar( {nr}, {varname}) any variable {varname} in window {nr} |
1803 glob( {expr} [, {flag}]) String expand file wildcards in {expr} | 1804 glob( {expr} [, {nosuf} [, {list}]]) |
1805 any expand file wildcards in {expr} | |
1804 globpath( {path}, {expr} [, {flag}]) | 1806 globpath( {path}, {expr} [, {flag}]) |
1805 String do glob({expr}) for all dirs in {path} | 1807 String do glob({expr}) for all dirs in {path} |
1806 has( {feature}) Number TRUE if feature {feature} supported | 1808 has( {feature}) Number TRUE if feature {feature} supported |
1807 has_key( {dict}, {key}) Number TRUE if {dict} has entry {key} | 1809 has_key( {dict}, {key}) Number TRUE if {dict} has entry {key} |
1808 haslocaldir() Number TRUE if current window executed |:lcd| | 1810 haslocaldir() Number TRUE if current window executed |:lcd| |
2800 '/' added. | 2802 '/' added. |
2801 | 2803 |
2802 When {expr} does not start with '%', '#' or '<', it is | 2804 When {expr} does not start with '%', '#' or '<', it is |
2803 expanded like a file name is expanded on the command line. | 2805 expanded like a file name is expanded on the command line. |
2804 'suffixes' and 'wildignore' are used, unless the optional | 2806 'suffixes' and 'wildignore' are used, unless the optional |
2805 {flag} argument is given and it is non-zero. Names for | 2807 {nosuf} argument is given and it is non-zero. |
2806 non-existing files are included. The "**" item can be used to | 2808 Names for non-existing files are included. The "**" item can |
2807 search in a directory tree. For example, to find all "README" | 2809 be used to search in a directory tree. For example, to find |
2808 files in the current directory and below: > | 2810 all "README" files in the current directory and below: > |
2809 :echo expand("**/README") | 2811 :echo expand("**/README") |
2810 < | 2812 < |
2811 Expand() can also be used to expand variables and environment | 2813 Expand() can also be used to expand variables and environment |
2812 variables that are only known in a shell. But this can be | 2814 variables that are only known in a shell. But this can be |
2813 slow, because a shell must be started. See |expr-env-expand|. | 2815 slow, because a shell must be started. See |expr-env-expand|. |