Mercurial > vim
comparison runtime/doc/eval.txt @ 1586:fe7db192c7cc v7.1.299
updated for version 7.1-299
author | vimboss |
---|---|
date | Wed, 28 May 2008 14:49:58 +0000 |
parents | 8d74df00f7da |
children | 1324b7b755f3 |
comparison
equal
deleted
inserted
replaced
1585:4a317df16962 | 1586:fe7db192c7cc |
---|---|
1 *eval.txt* For Vim version 7.1. Last change: 2008 Feb 20 | 1 *eval.txt* For Vim version 7.1. Last change: 2008 May 28 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
1607 {string} is 0 | 1607 {string} is 0 |
1608 finddir( {name}[, {path}[, {count}]]) | 1608 finddir( {name}[, {path}[, {count}]]) |
1609 String find directory {name} in {path} | 1609 String find directory {name} in {path} |
1610 findfile( {name}[, {path}[, {count}]]) | 1610 findfile( {name}[, {path}[, {count}]]) |
1611 String find file {name} in {path} | 1611 String find file {name} in {path} |
1612 fnameescape( {fname}) String escape special characters in {fname} | |
1612 fnamemodify( {fname}, {mods}) String modify file name | 1613 fnamemodify( {fname}, {mods}) String modify file name |
1613 foldclosed( {lnum}) Number first line of fold at {lnum} if closed | 1614 foldclosed( {lnum}) Number first line of fold at {lnum} if closed |
1614 foldclosedend( {lnum}) Number last line of fold at {lnum} if closed | 1615 foldclosedend( {lnum}) Number last line of fold at {lnum} if closed |
1615 foldlevel( {lnum}) Number fold level at {lnum} | 1616 foldlevel( {lnum}) Number fold level at {lnum} |
1616 foldtext( ) String line displayed for closed fold | 1617 foldtext( ) String line displayed for closed fold |
2618 Example: > | 2619 Example: > |
2619 :echo findfile("tags.vim", ".;") | 2620 :echo findfile("tags.vim", ".;") |
2620 < Searches from the directory of the current file upwards until | 2621 < Searches from the directory of the current file upwards until |
2621 it finds the file "tags.vim". | 2622 it finds the file "tags.vim". |
2622 | 2623 |
2624 fnameescape({string}) *fnameescape()* | |
2625 Escape {string} for use as file name command argument. All | |
2626 characters that have a special meaning, such as '%' and '|' | |
2627 are escaped with a backslash. | |
2628 For most systems the characters escaped are "". For systems | |
2629 where a backslash appears in a filename, it depends on the | |
2630 value of 'isfname'. | |
2631 Example: > | |
2632 :let fname = 'some str%nge|name' | |
2633 :exe "edit " . fnameescape(fname) | |
2634 < results in executing: > | |
2635 edit some\ str\%nge\|name | |
2636 | |
2623 fnamemodify({fname}, {mods}) *fnamemodify()* | 2637 fnamemodify({fname}, {mods}) *fnamemodify()* |
2624 Modify file name {fname} according to {mods}. {mods} is a | 2638 Modify file name {fname} according to {mods}. {mods} is a |
2625 string of characters like it is used for file names on the | 2639 string of characters like it is used for file names on the |
2626 command line. See |filename-modifiers|. | 2640 command line. See |filename-modifiers|. |
2627 Example: > | 2641 Example: > |