summaryrefslogtreecommitdiffstats
path: root/runtime/doc/eval.txt
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-05-30 18:30:36 +0200
committerBram Moolenaar <Bram@vim.org>2010-05-30 18:30:36 +0200
commita17d4c1934b008b9aa8a2d7cf085cfe76a690d9a (patch)
tree0698c081448b50f5c579252f34433da021de4984 /runtime/doc/eval.txt
parent504a82173c607f50801e90f8001bb2f1c13fecf9 (diff)
Added the undofile() function. Updated runtime files.
Diffstat (limited to 'runtime/doc/eval.txt')
-rw-r--r--runtime/doc/eval.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index 08b79bb784..4d983bfba3 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -1943,6 +1943,7 @@ tr( {src}, {fromstr}, {tostr}) String translate chars of {src} in {fromstr}
to chars in {tostr}
trunc( {expr} Float truncate Float {expr}
type( {name}) Number type of variable {name}
+undofile( {name}) String undo file name for {name}
values( {dict}) List values in {dict}
virtcol( {expr}) Number screen column of cursor or mark
visualmode( [expr]) String last visual mode used
@@ -5767,6 +5768,15 @@ type({expr}) The result is a Number, depending on the type of {expr}:
:if type(myvar) == type({})
:if type(myvar) == type(0.0)
+undofile({name}) *undofile()*
+ Return the name of the undo file that would be used for a file
+ with name {name} when writing. This uses the 'undodir'
+ option, finding directories that exist. It does not check if
+ the undo file exist.
+ Useful in combination with |:wundo| and |:rundo|.
+ When compiled without the +persistent_undo option this always
+ returns an empty string.
+
values({dict}) *values()*
Return a |List| with all the values of {dict}. The |List| is
in arbitrary order.