Mercurial > vim
comparison runtime/doc/eval.txt @ 7651:c7575b07de98 v7.4.1125
commit https://github.com/vim/vim/commit/e9b892ebcd8596bf813793a1eed5a460a9495a28
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 17 21:15:58 2016 +0100
patch 7.4.1125
Problem: There is no perleval().
Solution: Add perleval(). (Damien)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 17 Jan 2016 21:30:04 +0100 |
parents | befbed72da87 |
children | d4370fef0175 |
comparison
equal
deleted
inserted
replaced
7650:fbc4cabe6704 | 7651:c7575b07de98 |
---|---|
1 *eval.txt* For Vim version 7.4. Last change: 2016 Jan 16 | 1 *eval.txt* For Vim version 7.4. Last change: 2016 Jan 17 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
1948 mzeval( {expr}) any evaluate |MzScheme| expression | 1948 mzeval( {expr}) any evaluate |MzScheme| expression |
1949 nextnonblank( {lnum}) Number line nr of non-blank line >= {lnum} | 1949 nextnonblank( {lnum}) Number line nr of non-blank line >= {lnum} |
1950 nr2char( {expr}[, {utf8}]) String single char with ASCII/UTF8 value {expr} | 1950 nr2char( {expr}[, {utf8}]) String single char with ASCII/UTF8 value {expr} |
1951 or( {expr}, {expr}) Number bitwise OR | 1951 or( {expr}, {expr}) Number bitwise OR |
1952 pathshorten( {expr}) String shorten directory names in a path | 1952 pathshorten( {expr}) String shorten directory names in a path |
1953 perleval( {expr}) any evaluate |Perl| expression | |
1953 pow( {x}, {y}) Float {x} to the power of {y} | 1954 pow( {x}, {y}) Float {x} to the power of {y} |
1954 prevnonblank( {lnum}) Number line nr of non-blank line <= {lnum} | 1955 prevnonblank( {lnum}) Number line nr of non-blank line <= {lnum} |
1955 printf( {fmt}, {expr1}...) String format text | 1956 printf( {fmt}, {expr1}...) String format text |
1956 pumvisible() Number whether popup menu is visible | 1957 pumvisible() Number whether popup menu is visible |
1957 pyeval( {expr}) any evaluate |Python| expression | 1958 pyeval( {expr}) any evaluate |Python| expression |
4775 components in the path are reduced to single letters. Leading | 4776 components in the path are reduced to single letters. Leading |
4776 '~' and '.' characters are kept. Example: > | 4777 '~' and '.' characters are kept. Example: > |
4777 :echo pathshorten('~/.vim/autoload/myfile.vim') | 4778 :echo pathshorten('~/.vim/autoload/myfile.vim') |
4778 < ~/.v/a/myfile.vim ~ | 4779 < ~/.v/a/myfile.vim ~ |
4779 It doesn't matter if the path exists or not. | 4780 It doesn't matter if the path exists or not. |
4781 | |
4782 perleval({expr}) *perleval()* | |
4783 Evaluate Perl expression {expr} in scalar context and return | |
4784 its result converted to Vim data structures. If value can't be | |
4785 converted, it returned as string Perl representation. | |
4786 Note: If you want a array or hash, {expr} must returns an | |
4787 reference of it. | |
4788 Example: > | |
4789 :echo perleval('[1 .. 4]') | |
4790 < [1, 2, 3, 4] | |
4791 {only available when compiled with the |+perl| feature} | |
4780 | 4792 |
4781 pow({x}, {y}) *pow()* | 4793 pow({x}, {y}) *pow()* |
4782 Return the power of {x} to the exponent {y} as a |Float|. | 4794 Return the power of {x} to the exponent {y} as a |Float|. |
4783 {x} and {y} must evaluate to a |Float| or a |Number|. | 4795 {x} and {y} must evaluate to a |Float| or a |Number|. |
4784 Examples: > | 4796 Examples: > |