comparison runtime/doc/eval.txt @ 6447:0550be8fc7f6

Updated runtime files.
author Bram Moolenaar <bram@vim.org>
date Sun, 14 Dec 2014 01:27:49 +0100
parents 5d89d9b40499
children 435956324539
comparison
equal deleted inserted replaced
6446:cf4a4806124d 6447:0550be8fc7f6
1 *eval.txt* For Vim version 7.4. Last change: 2014 Nov 27 1 *eval.txt* For Vim version 7.4. Last change: 2014 Dec 07
2 2
3 3
4 VIM REFERENCE MANUAL by Bram Moolenaar 4 VIM REFERENCE MANUAL by Bram Moolenaar
5 5
6 6
2393 . the cursor position 2393 . the cursor position
2394 $ the end of the cursor line (the result is the 2394 $ the end of the cursor line (the result is the
2395 number of bytes in the cursor line plus one) 2395 number of bytes in the cursor line plus one)
2396 'x position of mark x (if the mark is not set, 0 is 2396 'x position of mark x (if the mark is not set, 0 is
2397 returned) 2397 returned)
2398 v In Visual mode: the start of the Visual area (the
2399 cursor is the end). When not in Visual mode
2400 returns the cursor position. Differs from |'<| in
2401 that it's updated right away.
2398 Additionally {expr} can be [lnum, col]: a |List| with the line 2402 Additionally {expr} can be [lnum, col]: a |List| with the line
2399 and column number. Most useful when the column is "$", to get 2403 and column number. Most useful when the column is "$", to get
2400 the last column of a specific line. When "lnum" or "col" is 2404 the last column of a specific line. When "lnum" or "col" is
2401 out of range then col() returns zero. 2405 out of range then col() returns zero.
2402 To get the line number use |line()|. To get both use 2406 To get the line number use |line()|. To get both use
6416 $ the end of the cursor line (the result is the 6420 $ the end of the cursor line (the result is the
6417 number of displayed characters in the cursor line 6421 number of displayed characters in the cursor line
6418 plus one) 6422 plus one)
6419 'x position of mark x (if the mark is not set, 0 is 6423 'x position of mark x (if the mark is not set, 0 is
6420 returned) 6424 returned)
6425 v In Visual mode: the start of the Visual area (the
6426 cursor is the end). When not in Visual mode
6427 returns the cursor position. Differs from |'<| in
6428 that it's updated right away.
6421 Note that only marks in the current file can be used. 6429 Note that only marks in the current file can be used.
6422 Examples: > 6430 Examples: >
6423 virtcol(".") with text "foo^Lbar", with cursor on the "^L", returns 5 6431 virtcol(".") with text "foo^Lbar", with cursor on the "^L", returns 5
6424 virtcol("$") with text "foo^Lbar", returns 9 6432 virtcol("$") with text "foo^Lbar", returns 9
6425 virtcol("'t") with text " there", with 't at 'h', returns 6 6433 virtcol("'t") with text " there", with 't at 'h', returns 6