Mercurial > vim
comparison runtime/doc/eval.txt @ 7597:3012eaddb6b2
commit https://github.com/vim/vim/commit/345efa013dc6d1754ba06e5596a26c48c9935937
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jan 15 20:57:49 2016 +0100
Update runtime files
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 15 Jan 2016 21:00:07 +0100 |
parents | 87e607fb6853 |
children | 228ff048db20 |
comparison
equal
deleted
inserted
replaced
7596:a9234d9e3efd | 7597:3012eaddb6b2 |
---|---|
1 *eval.txt* For Vim version 7.4. Last change: 2016 Jan 09 | 1 *eval.txt* For Vim version 7.4. Last change: 2016 Jan 15 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
3495 when not in the command-line window. | 3495 when not in the command-line window. |
3496 | 3496 |
3497 *getcurpos()* | 3497 *getcurpos()* |
3498 getcurpos() Get the position of the cursor. This is like getpos('.'), but | 3498 getcurpos() Get the position of the cursor. This is like getpos('.'), but |
3499 includes an extra item in the list: | 3499 includes an extra item in the list: |
3500 [bufnum, lnum, col, off, curswant] | 3500 [bufnum, lnum, col, off, curswant] ~ |
3501 The "curswant" number is the preferred column when moving the | 3501 The "curswant" number is the preferred column when moving the |
3502 cursor vertically. | 3502 cursor vertically. |
3503 This can be used to save and restore the cursor position: > | 3503 This can be used to save and restore the cursor position: > |
3504 let save_cursor = getcurpos() | 3504 let save_cursor = getcurpos() |
3505 MoveTheCursorAround | 3505 MoveTheCursorAround |