Mercurial > vim
comparison runtime/doc/eval.txt @ 24:8ff7fd162d3c v7.0016
updated for version 7.0016
author | vimboss |
---|---|
date | Mon, 13 Sep 2004 20:26:32 +0000 |
parents | cc049b00ee70 |
children | 404aac550f35 |
comparison
equal
deleted
inserted
replaced
23:3f44e9abe4ec | 24:8ff7fd162d3c |
---|---|
1 *eval.txt* For Vim version 7.0aa. Last change: 2004 Aug 30 | 1 *eval.txt* For Vim version 7.0aa. Last change: 2004 Sep 13 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
928 String all {pat} in {expr} replaced with {sub} | 928 String all {pat} in {expr} replaced with {sub} |
929 synID( {line}, {col}, {trans}) Number syntax ID at {line} and {col} | 929 synID( {line}, {col}, {trans}) Number syntax ID at {line} and {col} |
930 synIDattr( {synID}, {what} [, {mode}]) | 930 synIDattr( {synID}, {what} [, {mode}]) |
931 String attribute {what} of syntax ID {synID} | 931 String attribute {what} of syntax ID {synID} |
932 synIDtrans( {synID}) Number translated syntax ID of {synID} | 932 synIDtrans( {synID}) Number translated syntax ID of {synID} |
933 system( {expr}) String output of shell command {expr} | 933 system( {expr} [, {input}]) String output of shell command/filter {expr} |
934 tempname() String name for a temporary file | 934 tempname() String name for a temporary file |
935 tolower( {expr}) String the String {expr} switched to lowercase | 935 tolower( {expr}) String the String {expr} switched to lowercase |
936 toupper( {expr}) String the String {expr} switched to uppercase | 936 toupper( {expr}) String the String {expr} switched to uppercase |
937 tr( {src}, {fromstr}, {tostr}) String translate chars of {src} in {fromstr} | 937 tr( {src}, {fromstr}, {tostr}) String translate chars of {src} in {fromstr} |
938 to chars in {tostr} | 938 to chars in {tostr} |
1109 relevant. {lnum} is used just like in |getline()|. | 1109 relevant. {lnum} is used just like in |getline()|. |
1110 When {lnum} is invalid or Vim was not compiled the |+cindent| | 1110 When {lnum} is invalid or Vim was not compiled the |+cindent| |
1111 feature, -1 is returned. | 1111 feature, -1 is returned. |
1112 | 1112 |
1113 *col()* | 1113 *col()* |
1114 col({expr}) The result is a Number, which is the column of the file | 1114 col({expr}) The result is a Number, which is the byte index of the column |
1115 position given with {expr}. The accepted positions are: | 1115 position given with {expr}. The accepted positions are: |
1116 . the cursor position | 1116 . the cursor position |
1117 $ the end of the cursor line (the result is the | 1117 $ the end of the cursor line (the result is the |
1118 number of characters in the cursor line plus one) | 1118 number of characters in the cursor line plus one) |
1119 'x position of mark x (if the mark is not set, 0 is | 1119 'x position of mark x (if the mark is not set, 0 is |
2651 The result is a Number, which is the translated syntax ID of | 2651 The result is a Number, which is the translated syntax ID of |
2652 {synID}. This is the syntax group ID of what is being used to | 2652 {synID}. This is the syntax group ID of what is being used to |
2653 highlight the character. Highlight links given with | 2653 highlight the character. Highlight links given with |
2654 ":highlight link" are followed. | 2654 ":highlight link" are followed. |
2655 | 2655 |
2656 *system()* | 2656 system({expr} [, {input}]) *system()* *E677* |
2657 system({expr}) Get the output of the shell command {expr}. Note: newlines | 2657 Get the output of the shell command {expr}. |
2658 in {expr} may cause the command to fail. The characters in | 2658 When {input} is given, this string is written to a file and |
2659 'shellquote' and 'shellxquote' may also cause trouble. | 2659 passed as stdin to the command. The string is written as-is, |
2660 you need to take care of using the correct line separators | |
2661 yourself. | |
2662 Note: newlines in {expr} may cause the command to fail. The | |
2663 characters in 'shellquote' and 'shellxquote' may also cause | |
2664 trouble. | |
2660 This is not to be used for interactive commands. | 2665 This is not to be used for interactive commands. |
2661 The result is a String. Example: > | 2666 The result is a String. Example: > |
2662 | 2667 |
2663 :let files = system("ls") | 2668 :let files = system("ls") |
2664 | 2669 |