Mercurial > vim
comparison runtime/doc/eval.txt @ 6153:1e8ebf870720
Updated runtime files.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Fri, 22 Aug 2014 19:21:47 +0200 |
parents | 1bff71d20262 |
children | 6921742f396a |
comparison
equal
deleted
inserted
replaced
6152:9d02417f8af0 | 6153:1e8ebf870720 |
---|---|
1 *eval.txt* For Vim version 7.4. Last change: 2014 Jul 19 | 1 *eval.txt* For Vim version 7.4. Last change: 2014 Aug 16 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
1805 any variable {varname} in buffer {expr} | 1805 any variable {varname} in buffer {expr} |
1806 getchar( [expr]) Number get one character from the user | 1806 getchar( [expr]) Number get one character from the user |
1807 getcharmod( ) Number modifiers for the last typed character | 1807 getcharmod( ) Number modifiers for the last typed character |
1808 getcmdline() String return the current command-line | 1808 getcmdline() String return the current command-line |
1809 getcmdpos() Number return cursor position in command-line | 1809 getcmdpos() Number return cursor position in command-line |
1810 getcmdtype() String return the current command-line type | 1810 getcmdtype() String return current command-line type |
1811 getcmdwintype() String return current command-line window type | |
1811 getcurpos() List position of the cursor | 1812 getcurpos() List position of the cursor |
1812 getcwd() String the current working directory | 1813 getcwd() String the current working directory |
1813 getfontname( [{name}]) String name of font being used | 1814 getfontname( [{name}]) String name of font being used |
1814 getfperm( {fname}) String file permissions of file {fname} | 1815 getfperm( {fname}) String file permissions of file {fname} |
1815 getfsize( {fname}) Number size in bytes of file {fname} | 1816 getfsize( {fname}) Number size in bytes of file {fname} |
2110 | 2111 |
2111 *arglistid()* | 2112 *arglistid()* |
2112 arglistid([{winnr}, [ {tabnr} ]]) | 2113 arglistid([{winnr}, [ {tabnr} ]]) |
2113 Return the argument list ID. This is a number which | 2114 Return the argument list ID. This is a number which |
2114 identifies the argument list being used. Zero is used for the | 2115 identifies the argument list being used. Zero is used for the |
2115 global argument list. | 2116 global argument list. See |arglist|. |
2116 Return zero if the arguments are invalid. | 2117 Return -1 if the arguments are invalid. |
2117 | 2118 |
2118 Without arguments use the current window. | 2119 Without arguments use the current window. |
2119 With {winnr} only use this window in the current tab page. | 2120 With {winnr} only use this window in the current tab page. |
2120 With {winnr} and {tabnr} use the window in the specified tab | 2121 With {winnr} and {tabnr} use the window in the specified tab |
2121 page. | 2122 page. |
3347 Only works when editing the command line, thus requires use of | 3348 Only works when editing the command line, thus requires use of |
3348 |c_CTRL-\_e| or |c_CTRL-R_=| or an expression mapping. | 3349 |c_CTRL-\_e| or |c_CTRL-R_=| or an expression mapping. |
3349 Returns an empty string otherwise. | 3350 Returns an empty string otherwise. |
3350 Also see |getcmdpos()|, |setcmdpos()| and |getcmdline()|. | 3351 Also see |getcmdpos()|, |setcmdpos()| and |getcmdline()|. |
3351 | 3352 |
3353 getcmdwintype() *getcmdwintype()* | |
3354 Return the current |command-line-window| type. Possible return | |
3355 values are the same as |getcmdtype()|. Returns an empty string | |
3356 when not in the command-line window. | |
3357 | |
3352 *getcurpos()* | 3358 *getcurpos()* |
3353 getcurpos() Get the position of the cursor. This is like getpos('.'), but | 3359 getcurpos() Get the position of the cursor. This is like getpos('.'), but |
3354 includes an extra item in the list: | 3360 includes an extra item in the list: |
3355 [bufnum, lnum, col, off, curswant] | 3361 [bufnum, lnum, col, off, curswant] |
3356 The "curswant" number is the preferred column when moving the | 3362 The "curswant" number is the preferred column when moving the |
3357 cursor vertically. | 3363 cursor vertically. |
3358 This can be used to save and restore the cursor position: > | 3364 This can be used to save and restore the cursor position: > |
3359 let save_cursor = getcurpos() | 3365 let save_cursor = getcurpos() |
3360 MoveTheCursorAround | 3366 MoveTheCursorAround |
3361 call setpos('.', save_cursor) | 3367 call setpos('.', save_cursor) |
3362 | 3368 < |
3363 *getcwd()* | 3369 *getcwd()* |
3364 getcwd() The result is a String, which is the name of the current | 3370 getcwd() The result is a String, which is the name of the current |
3365 working directory. | 3371 working directory. |
3366 | 3372 |
3367 getfsize({fname}) *getfsize()* | 3373 getfsize({fname}) *getfsize()* |