comparison runtime/doc/eval.txt @ 419:f713fc55bf7b v7.0109

updated for version 7.0109
author vimboss
date Mon, 18 Jul 2005 21:58:11 +0000
parents 4a1ead01d30b
children 73f016dbb279
comparison
equal deleted inserted replaced
418:84825cc6f049 419:f713fc55bf7b
1 *eval.txt* For Vim version 7.0aa. Last change: 2005 Jul 07 1 *eval.txt* For Vim version 7.0aa. Last change: 2005 Jul 18
2 2
3 3
4 VIM REFERENCE MANUAL by Bram Moolenaar 4 VIM REFERENCE MANUAL by Bram Moolenaar
5 5
6 6
3977 synID({lnum}, {col}, {trans}) *synID()* 3977 synID({lnum}, {col}, {trans}) *synID()*
3978 The result is a Number, which is the syntax ID at the position 3978 The result is a Number, which is the syntax ID at the position
3979 {lnum} and {col} in the current window. 3979 {lnum} and {col} in the current window.
3980 The syntax ID can be used with |synIDattr()| and 3980 The syntax ID can be used with |synIDattr()| and
3981 |synIDtrans()| to obtain syntax information about text. 3981 |synIDtrans()| to obtain syntax information about text.
3982
3982 {col} is 1 for the leftmost column, {lnum} is 1 for the first 3983 {col} is 1 for the leftmost column, {lnum} is 1 for the first
3983 line. 3984 line. 'synmaxcol' applies, in a longer line zero is returned.
3985
3984 When {trans} is non-zero, transparent items are reduced to the 3986 When {trans} is non-zero, transparent items are reduced to the
3985 item that they reveal. This is useful when wanting to know 3987 item that they reveal. This is useful when wanting to know
3986 the effective color. When {trans} is zero, the transparent 3988 the effective color. When {trans} is zero, the transparent
3987 item is returned. This is useful when wanting to know which 3989 item is returned. This is useful when wanting to know which
3988 syntax item is effective (e.g. inside parens). 3990 syntax item is effective (e.g. inside parens).