Mercurial > vim
diff 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 |
line wrap: on
line diff
--- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -1,4 +1,4 @@ -*eval.txt* For Vim version 7.4. Last change: 2014 Nov 27 +*eval.txt* For Vim version 7.4. Last change: 2014 Dec 07 VIM REFERENCE MANUAL by Bram Moolenaar @@ -2395,6 +2395,10 @@ col({expr}) The result is a Number, whic number of bytes in the cursor line plus one) 'x position of mark x (if the mark is not set, 0 is returned) + v In Visual mode: the start of the Visual area (the + cursor is the end). When not in Visual mode + returns the cursor position. Differs from |'<| in + that it's updated right away. Additionally {expr} can be [lnum, col]: a |List| with the line and column number. Most useful when the column is "$", to get the last column of a specific line. When "lnum" or "col" is @@ -6418,6 +6422,10 @@ virtcol({expr}) *virtcol()* plus one) 'x position of mark x (if the mark is not set, 0 is returned) + v In Visual mode: the start of the Visual area (the + cursor is the end). When not in Visual mode + returns the cursor position. Differs from |'<| in + that it's updated right away. Note that only marks in the current file can be used. Examples: > virtcol(".") with text "foo^Lbar", with cursor on the "^L", returns 5