comparison runtime/doc/eval.txt @ 3996:b3f3237a3d72

Update runtime files.
author Bram Moolenaar <bram@vim.org>
date Wed, 05 Dec 2012 19:01:43 +0100
parents 56bb88c68f98
children 42edc5dac33c
comparison
equal deleted inserted replaced
3995:c2ea289a5b7f 3996:b3f3237a3d72
1 *eval.txt* For Vim version 7.3. Last change: 2012 Nov 21 1 *eval.txt* For Vim version 7.3. Last change: 2012 Dec 05
2 2
3 3
4 VIM REFERENCE MANUAL by Bram Moolenaar 4 VIM REFERENCE MANUAL by Bram Moolenaar
5 5
6 6
4872 echo round(4.5) 4872 echo round(4.5)
4873 < 5.0 > 4873 < 5.0 >
4874 echo round(-4.5) 4874 echo round(-4.5)
4875 < -5.0 4875 < -5.0
4876 {only available when compiled with the |+float| feature} 4876 {only available when compiled with the |+float| feature}
4877 4877
4878 4878 screencol() *screencol()*
4879 The result is a Number, which is the current screen column of
4880 the cursor. The leftmost column has number 1.
4881 This function is mainly used for testing.
4882
4883 Note: Always returns the current screen column, thus if used
4884 in a command (e.g. ":echo screencol()") it will return the
4885 column inside the command line, which is 1 when the command is
4886 executed. To get the cursor position in the file use one of
4887 the following mappings: >
4888 nnoremap <expr> GG ":echom ".screencol()."\n"
4889 nnoremap <silent> GG :echom screencol()<CR>
4890 <
4891 screenrow() *screenrow()*
4892 The result is a Number, which is the current screen row of the
4893 cursor. The top line has number one.
4894 This function is mainly used for testing.
4895
4896 Note: Same restrictions as with |screencol()|.
4897
4879 search({pattern} [, {flags} [, {stopline} [, {timeout}]]]) *search()* 4898 search({pattern} [, {flags} [, {stopline} [, {timeout}]]]) *search()*
4880 Search for regexp pattern {pattern}. The search starts at the 4899 Search for regexp pattern {pattern}. The search starts at the
4881 cursor position (you can use |cursor()| to set it). 4900 cursor position (you can use |cursor()| to set it).
4882 4901
4883 When a match has been found its line number is returned. 4902 When a match has been found its line number is returned.