Mercurial > vim
comparison runtime/doc/eval.txt @ 2965:f2de38a019a2
Updated runtime files.
Add missing test82 files.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Mon, 18 Jul 2011 19:40:27 +0200 |
parents | fd09a9c8468e |
children | 3502a7f991fc |
comparison
equal
deleted
inserted
replaced
2964:39cb812cf477 | 2965:f2de38a019a2 |
---|---|
1 *eval.txt* For Vim version 7.3. Last change: 2011 Jun 19 | 1 *eval.txt* For Vim version 7.3. Last change: 2011 Jul 13 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
2275 char2nr(" ") returns 32 | 2275 char2nr(" ") returns 32 |
2276 char2nr("ABC") returns 65 | 2276 char2nr("ABC") returns 65 |
2277 < The current 'encoding' is used. Example for "utf-8": > | 2277 < The current 'encoding' is used. Example for "utf-8": > |
2278 char2nr("á") returns 225 | 2278 char2nr("á") returns 225 |
2279 char2nr("á"[0]) returns 195 | 2279 char2nr("á"[0]) returns 195 |
2280 < |nr2char()| does the opposite. | 2280 < A combining character is a separate character. |
2281 |nr2char()| does the opposite. | |
2281 | 2282 |
2282 cindent({lnum}) *cindent()* | 2283 cindent({lnum}) *cindent()* |
2283 Get the amount of indent for line {lnum} according the C | 2284 Get the amount of indent for line {lnum} according the C |
2284 indenting rules, as with 'cindent'. | 2285 indenting rules, as with 'cindent'. |
2285 The indent is counted in spaces, the value of 'tabstop' is | 2286 The indent is counted in spaces, the value of 'tabstop' is |
5966 For the byte position use |col()|. | 5967 For the byte position use |col()|. |
5967 For the use of {expr} see |col()|. | 5968 For the use of {expr} see |col()|. |
5968 When 'virtualedit' is used {expr} can be [lnum, col, off], where | 5969 When 'virtualedit' is used {expr} can be [lnum, col, off], where |
5969 "off" is the offset in screen columns from the start of the | 5970 "off" is the offset in screen columns from the start of the |
5970 character. E.g., a position within a <Tab> or after the last | 5971 character. E.g., a position within a <Tab> or after the last |
5971 character. | 5972 character. When "off" is omitted zero is used. |
5972 When Virtual editing is active in the current mode, a position | 5973 When Virtual editing is active in the current mode, a position |
5973 beyond the end of the line can be returned. |'virtualedit'| | 5974 beyond the end of the line can be returned. |'virtualedit'| |
5974 The accepted positions are: | 5975 The accepted positions are: |
5975 . the cursor position | 5976 . the cursor position |
5976 $ the end of the cursor line (the result is the | 5977 $ the end of the cursor line (the result is the |