Mercurial > vim
comparison runtime/doc/eval.txt @ 1548:8d74df00f7da v7.1.262
updated for version 7.1-262
author | vimboss |
---|---|
date | Wed, 20 Feb 2008 19:11:07 +0000 |
parents | 8abc0abf8cbd |
children | fe7db192c7cc |
comparison
equal
deleted
inserted
replaced
1547:e72e30c69d58 | 1548:8d74df00f7da |
---|---|
1 *eval.txt* For Vim version 7.1. Last change: 2008 Feb 13 | 1 *eval.txt* For Vim version 7.1. Last change: 2008 Feb 20 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
1636 getftype( {fname}) String description of type of file {fname} | 1636 getftype( {fname}) String description of type of file {fname} |
1637 getline( {lnum}) String line {lnum} of current buffer | 1637 getline( {lnum}) String line {lnum} of current buffer |
1638 getline( {lnum}, {end}) List lines {lnum} to {end} of current buffer | 1638 getline( {lnum}, {end}) List lines {lnum} to {end} of current buffer |
1639 getloclist({nr}) List list of location list items | 1639 getloclist({nr}) List list of location list items |
1640 getmatches() List list of current matches | 1640 getmatches() List list of current matches |
1641 getpid() Number process ID of Vim | |
1641 getpos( {expr}) List position of cursor, mark, etc. | 1642 getpos( {expr}) List position of cursor, mark, etc. |
1642 getqflist() List list of quickfix items | 1643 getqflist() List list of quickfix items |
1643 getreg( [{regname} [, 1]]) String contents of register | 1644 getreg( [{regname} [, 1]]) String contents of register |
1644 getregtype( [{regname}]) String type of register | 1645 getregtype( [{regname}]) String type of register |
1645 gettabwinvar( {tabnr}, {winnr}, {name}) | 1646 gettabwinvar( {tabnr}, {winnr}, {name}) |
3831 < Note that a NUL character in the file is specified with | 3832 < Note that a NUL character in the file is specified with |
3832 nr2char(10), because NULs are represented with newline | 3833 nr2char(10), because NULs are represented with newline |
3833 characters. nr2char(0) is a real NUL and terminates the | 3834 characters. nr2char(0) is a real NUL and terminates the |
3834 string, thus results in an empty string. | 3835 string, thus results in an empty string. |
3835 | 3836 |
3837 *getpid()* | |
3838 getpid() Return a Number which is the process ID of the Vim process. | |
3839 On Unix this is a unique number. On MS-DOS it's always zero. | |
3840 | |
3836 *getpos()* | 3841 *getpos()* |
3837 getpos({expr}) Get the position for {expr}. For possible values of {expr} | 3842 getpos({expr}) Get the position for {expr}. For possible values of {expr} |
3838 see |line()|. | 3843 see |line()|. |
3839 The result is a |List| with four numbers: | 3844 The result is a |List| with four numbers: |
3840 [bufnum, lnum, col, off] | 3845 [bufnum, lnum, col, off] |