Hi Bram,

    A number of functions are documented in eval.txt, but missing from
function-list in usr_41.txt.  Patch below.

    Best regards,

    /lcd


diff -r de28b1568fc2 runtime/doc/usr_41.txt
--- a/runtime/doc/usr_41.txt    Tue Jan 07 06:09:28 2014 +0100
+++ b/runtime/doc/usr_41.txt    Thu Jan 09 21:06:06 2014 +0200
@@ -595,13 +595,20 @@
        matchlist()             like matchstr() and also return submatches
        stridx()                first index of a short string in a long string
        strridx()               last index of a short string in a long string
-       strlen()                length of a string
+       strlen()                length of a string in bytes
+       strchars()              length of a string in characters
+       strwidth()              length of a string in display cells (tabs not
+                               expanded)
+       strdisplaywidth()       length of a string in display cells (tabs
+                               expanded)
        substitute()            substitute a pattern match with a string
        submatch()              get a specific match in ":s" and substitute()
        strpart()               get part of a string
        expand()                expand special keywords
        iconv()                 convert text from one encoding to another
        byteidx()               byte index of a character in a string
+       byteidxcomp()           like byteidx(), but count composing characters
+                               are counted separately
        repeat()                repeat a string multiple times
        eval()                  evaluate a string expression
 
@@ -656,6 +663,8 @@
        ceil()                  round up
        floor()                 round down
        trunc()                 remove value after decimal point
+       exp()                   exponential
+       log()                   natural logarithm (logarithm to base e)
        log10()                 logarithm to base 10
        pow()                   value of x to the exponent y
        sqrt()                  square root
@@ -669,6 +678,7 @@
        sinh()                  hyperbolic sine
        cosh()                  hyperbolic cosine
        tanh()                  hyperbolic tangent
+       fmod()                  remainder
 
 Other computation:                                     *bitwise-function*
        and()                   bitwise AND
@@ -702,6 +712,10 @@
        byte2line()             get line number at a specific byte count
        line2byte()             byte count at a specific line
        diff_filler()           get the number of filler lines above a line
+       screenattr()            get attribute at a screen line/row
+       screenchar()            get character code at a screen line/row
+       screencol()             get screen column of the cursor
+       screenrow()             get screen row of the cursor
 
 Working with text in the current buffer:               *text-functions*
        getline()               get a line or list of lines from the buffer
@@ -745,6 +759,7 @@
        hostname()              name of the system
        readfile()              read a file into a List of lines
        writefile()             write a List of lines into a file
+       undofile()              get the name of the undo file
 
 Date and Time:                         *date-functions* *time-functions*
        getftime()              get last modification time of a file
@@ -879,6 +894,7 @@
        did_filetype()          check if a FileType autocommand was used
        eventhandler()          check if invoked by an event handler
        getpid()                get process ID of Vim
+       undotree()              returns the state of the undo tree
 
        libcall()               call a function in an external library
        libcallnr()             idem, returning a number
@@ -887,10 +903,17 @@
        getregtype()            get type of a register
        setreg()                set contents and type of a register
 
+       shiftwidth()            effective value of 'shiftwidth'
+
        taglist()               get list of matching tags
        tagfiles()              get a list of tags files
 
+       sha256()                SHA-256 hash
+
+       luaeval()               evaluate Lua expression
        mzeval()                evaluate |MzScheme| expression
+       py3eval()               evaluate Python expression (|+python3|)
+       pyeval()                evaluate Python expression (|+python|)
 
 ==============================================================================
 *41.7* Defining a function

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Raspunde prin e-mail lui