comparison runtime/doc/eval.txt @ 677:e649c78407e6 v7.0202

updated for version 7.0202
author vimboss
date Mon, 20 Feb 2006 21:37:40 +0000
parents 4b8583e82cb8
children 9364d114ed8d
comparison
equal deleted inserted replaced
676:9cdb8018cdf1 677:e649c78407e6
1 *eval.txt* For Vim version 7.0aa. Last change: 2006 Feb 18 1 *eval.txt* For Vim version 7.0aa. Last change: 2006 Feb 20
2 2
3 3
4 VIM REFERENCE MANUAL by Bram Moolenaar 4 VIM REFERENCE MANUAL by Bram Moolenaar
5 5
6 6
1688 synID( {lnum}, {col}, {trans}) Number syntax ID at {lnum} and {col} 1688 synID( {lnum}, {col}, {trans}) Number syntax ID at {lnum} and {col}
1689 synIDattr( {synID}, {what} [, {mode}]) 1689 synIDattr( {synID}, {what} [, {mode}])
1690 String attribute {what} of syntax ID {synID} 1690 String attribute {what} of syntax ID {synID}
1691 synIDtrans( {synID}) Number translated syntax ID of {synID} 1691 synIDtrans( {synID}) Number translated syntax ID of {synID}
1692 system( {expr} [, {input}]) String output of shell command/filter {expr} 1692 system( {expr} [, {input}]) String output of shell command/filter {expr}
1693 tabpage( [{expr}]) Number number of current tab page 1693 tabpagebuflist( [{arg}]) List list of buffer numbers in tab page
1694 taglist( {expr}) List list of tags matching {expr} 1694 tabpagenr( [{arg}]) Number number of current or last tab page
1695 tabpagewinnr( {tabarg}[, {arg}])
1696 Number number of current window in tab page
1697 taglist( {expr}) List list of tags matching {expr}
1695 tagfiles() List tags files used 1698 tagfiles() List tags files used
1696 tempname() String name for a temporary file 1699 tempname() String name for a temporary file
1697 tolower( {expr}) String the String {expr} switched to lowercase 1700 tolower( {expr}) String the String {expr} switched to lowercase
1698 toupper( {expr}) String the String {expr} switched to uppercase 1701 toupper( {expr}) String the String {expr} switched to uppercase
1699 tr( {src}, {fromstr}, {tostr}) String translate chars of {src} in {fromstr} 1702 tr( {src}, {fromstr}, {tostr}) String translate chars of {src} in {fromstr}
3859 *searchpair()* 3862 *searchpair()*
3860 searchpair({start}, {middle}, {end} [, {flags} [, {skip}]]) 3863 searchpair({start}, {middle}, {end} [, {flags} [, {skip}]])
3861 Search for the match of a nested start-end pair. This can be 3864 Search for the match of a nested start-end pair. This can be
3862 used to find the "endif" that matches an "if", while other 3865 used to find the "endif" that matches an "if", while other
3863 if/endif pairs in between are ignored. 3866 if/endif pairs in between are ignored.
3864 The search starts at the cursor. If a match is found, the 3867 The search starts at the cursor. The default is to search
3865 cursor is positioned at it and the line number is returned. 3868 forward, include 'b' in {flags} to search backward.
3866 If no match is found 0 or -1 is returned and the cursor 3869 If a match is found, the cursor is positioned at it and the
3867 doesn't move. No error message is given. 3870 line number is returned. If no match is found 0 or -1 is
3871 returned and the cursor doesn't move. No error message is
3872 given.
3868 3873
3869 {start}, {middle} and {end} are patterns, see |pattern|. They 3874 {start}, {middle} and {end} are patterns, see |pattern|. They
3870 must not contain \( \) pairs. Use of \%( \) is allowed. When 3875 must not contain \( \) pairs. Use of \%( \) is allowed. When
3871 {middle} is not empty, it is found when searching from either 3876 {middle} is not empty, it is found when searching from either
3872 direction, but only when not in a nested start-end pair. A 3877 direction, but only when not in a nested start-end pair. A
4446 when using a security agent application. 4451 when using a security agent application.
4447 Unlike ":!cmd" there is no automatic check for changed files. 4452 Unlike ":!cmd" there is no automatic check for changed files.
4448 Use |:checktime| to force a check. 4453 Use |:checktime| to force a check.
4449 4454
4450 4455
4451 tabpagenr([{arg}]) *tabpagenr()* 4456 tabpagebuflist([{arg}]) *tabpagebuflist()*
4457 The result is a List, where each item is the number of the
4458 buffer associated with each window in the current tab page.
4459 {arg} specifies the number of tab page to be used. When
4460 omitted the current tab page is used.
4461 When {arg} is invalid the number zero is returned.
4462 To get a list of all buffers in all tabs use this: >
4463 tablist = []
4464 for i in range(tabpagenr('$'))
4465 call extend(tablist, tabpagebuflist(i + 1))
4466 endfor
4467 < Note that a buffer may appear in more than one window.
4468
4469
4470 tabpagenr([{arg}]) *tabpagenr()*
4452 The result is a Number, which is the number of the current 4471 The result is a Number, which is the number of the current
4453 tab page. The first tab page has number 1. 4472 tab page. The first tab page has number 1.
4454 When the optional argument is "$", the number of the last tab 4473 When the optional argument is "$", the number of the last tab
4455 page is returned (the tab page count). 4474 page is returned (the tab page count).
4456 The number can be used with the |:tab| command. 4475 The number can be used with the |:tab| command.
4457 4476
4477
4478 tabpagewinnr({tabarg}, [{arg}]) *tabpagewinnr()*
4479 Like |winnr()| but for tab page {arg}.
4480 {tabarg} specifies the number of tab page to be used.
4481 {arg} is used like with |winnr()|:
4482 - When omitted the current window number is returned. This is
4483 the window which will be used when going to this tab page.
4484 - When "$" the number of windows is returned.
4485 - When "#" the previous window nr is returned.
4486 Useful examples: >
4487 tabpagewinnr(1) " current window of tab page 1
4488 tabpagewinnr(4, '$') " number of windows in tab page 4
4489 < When {tabarg} is invalid zero is returned.
4458 4490
4459 taglist({expr}) *taglist()* 4491 taglist({expr}) *taglist()*
4460 Returns a list of tags matching the regular expression {expr}. 4492 Returns a list of tags matching the regular expression {expr}.
4461 Each list item is a dictionary with at least the following 4493 Each list item is a dictionary with at least the following
4462 entries: 4494 entries: