Mercurial > vim
comparison runtime/doc/eval.txt @ 1500:ea9f418ed072 v7.1.215
updated for version 7.1-215
author | vimboss |
---|---|
date | Thu, 10 Jan 2008 21:24:39 +0000 |
parents | 29c09fa57168 |
children | 1b55bbf5c580 |
comparison
equal
deleted
inserted
replaced
1499:75c88515e0db | 1500:ea9f418ed072 |
---|---|
1 *eval.txt* For Vim version 7.1. Last change: 2008 Jan 06 | 1 *eval.txt* For Vim version 7.1. Last change: 2008 Jan 10 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
1784 String all {pat} in {expr} replaced with {sub} | 1784 String all {pat} in {expr} replaced with {sub} |
1785 synID( {lnum}, {col}, {trans}) Number syntax ID at {lnum} and {col} | 1785 synID( {lnum}, {col}, {trans}) Number syntax ID at {lnum} and {col} |
1786 synIDattr( {synID}, {what} [, {mode}]) | 1786 synIDattr( {synID}, {what} [, {mode}]) |
1787 String attribute {what} of syntax ID {synID} | 1787 String attribute {what} of syntax ID {synID} |
1788 synIDtrans( {synID}) Number translated syntax ID of {synID} | 1788 synIDtrans( {synID}) Number translated syntax ID of {synID} |
1789 synstack({lnum}, {col}) List stack of syntax IDs at {lnum} and {col} | |
1789 system( {expr} [, {input}]) String output of shell command/filter {expr} | 1790 system( {expr} [, {input}]) String output of shell command/filter {expr} |
1790 tabpagebuflist( [{arg}]) List list of buffer numbers in tab page | 1791 tabpagebuflist( [{arg}]) List list of buffer numbers in tab page |
1791 tabpagenr( [{arg}]) Number number of current or last tab page | 1792 tabpagenr( [{arg}]) Number number of current or last tab page |
1792 tabpagewinnr( {tabarg}[, {arg}]) | 1793 tabpagewinnr( {tabarg}[, {arg}]) |
1793 Number number of current window in tab page | 1794 Number number of current window in tab page |
4959 synIDtrans({synID}) *synIDtrans()* | 4960 synIDtrans({synID}) *synIDtrans()* |
4960 The result is a Number, which is the translated syntax ID of | 4961 The result is a Number, which is the translated syntax ID of |
4961 {synID}. This is the syntax group ID of what is being used to | 4962 {synID}. This is the syntax group ID of what is being used to |
4962 highlight the character. Highlight links given with | 4963 highlight the character. Highlight links given with |
4963 ":highlight link" are followed. | 4964 ":highlight link" are followed. |
4965 | |
4966 synstack({lnum}, {col}) *synstack()* | |
4967 Return a |List|, which is the stack of syntax items at the | |
4968 position {lnum} and {col} in the current window. Each item in | |
4969 the List is an ID like what |synID()| returns. | |
4970 The stack is the situation in between the character at "col" | |
4971 and the next character. Note that a region of only one | |
4972 character will not show up, it only exists inside that | |
4973 character, not in between characters. | |
4974 The first item in the List is the outer region, following are | |
4975 items contained in that one. The last one is what |synID()| | |
4976 returns, unless not the whole item is highlighted or it is a | |
4977 transparent item. | |
4978 This function is useful for debugging a syntax file. | |
4979 Example that shows the syntax stack under the cursor: > | |
4980 for id in synstack(line("."), col(".")) | |
4981 echo synIDattr(id, "name") | |
4982 endfor | |
4964 | 4983 |
4965 system({expr} [, {input}]) *system()* *E677* | 4984 system({expr} [, {input}]) *system()* *E677* |
4966 Get the output of the shell command {expr}. | 4985 Get the output of the shell command {expr}. |
4967 When {input} is given, this string is written to a file and | 4986 When {input} is given, this string is written to a file and |
4968 passed as stdin to the command. The string is written as-is, | 4987 passed as stdin to the command. The string is written as-is, |