diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2016-01-08 19:01:07 -0500 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-01-08 19:01:07 -0500 |
commit | 3706701d9b765df50c82a373b04371eac895fb1c (patch) | |
tree | 44f5e57e231166a878065e4f06b1ff7a94b3673f /runtime/doc/eval.txt | |
parent | a42800ba4523fd010a9b55947d1c6312950af945 (diff) | |
parent | 4bc3bcab22561bb7f78a948a3de5c0d2c25f01ad (diff) | |
download | rneovim-3706701d9b765df50c82a373b04371eac895fb1c.tar.gz rneovim-3706701d9b765df50c82a373b04371eac895fb1c.tar.bz2 rneovim-3706701d9b765df50c82a373b04371eac895fb1c.zip |
Merge pull request #3965 from jusga/vim-e3faf44
vim-patch:e3faf44
Diffstat (limited to 'runtime/doc/eval.txt')
-rw-r--r-- | runtime/doc/eval.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 45095d45a9..89b4825f5b 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -2415,6 +2415,10 @@ col({expr}) The result is a Number, which is the byte index of the column 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 @@ -6695,6 +6699,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 |