summaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2007-09-25 16:00:00 +0000
committerBram Moolenaar <Bram@vim.org>2007-09-25 16:00:00 +0000
commit9d2c8c1a66c2f354f06065d8261ac87e6c407097 (patch)
tree6dfee2d9b0bb5a1baa1f69bbf761c53f658e4a14 /runtime/doc
parent719939c888fe583419eec652a7cc71172bf3afb1 (diff)
downloadvim-git-9d2c8c1a66c2f354f06065d8261ac87e6c407097.tar.gz
updated for version 7.1-120v7.1.120
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/eval.txt9
1 files changed, 6 insertions, 3 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index 95ef5372b..6857ee519 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -1,4 +1,4 @@
-*eval.txt* For Vim version 7.1. Last change: 2007 Jul 25
+*eval.txt* For Vim version 7.1. Last change: 2007 Sep 25
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1603,7 +1603,7 @@ foldtext( ) String line displayed for closed fold
foldtextresult( {lnum}) String text for closed fold at {lnum}
foreground( ) Number bring the Vim window to the foreground
function( {name}) Funcref reference to function {name}
-garbagecollect() none free memory, breaking cyclic references
+garbagecollect( [at_exit]) none free memory, breaking cyclic references
get( {list}, {idx} [, {def}]) any get item {idx} from {list} or {def}
get( {dict}, {key} [, {def}]) any get item {key} from {dict} or {def}
getbufline( {expr}, {lnum} [, {end}])
@@ -2673,7 +2673,7 @@ function({name}) *function()* *E700*
{name} can be a user defined function or an internal function.
-garbagecollect() *garbagecollect()*
+garbagecollect([at_exit]) *garbagecollect()*
Cleanup unused |Lists| and |Dictionaries| that have circular
references. There is hardly ever a need to invoke this
function, as it is automatically done when Vim runs out of
@@ -2683,6 +2683,9 @@ garbagecollect() *garbagecollect()*
This is useful if you have deleted a very big |List| and/or
|Dictionary| with circular references in a script that runs
for a long time.
+ When the optional "at_exit" argument is one, garbage
+ collection will also be done when exiting Vim, if it wasn't
+ done before. This is useful when checking for memory leaks.
get({list}, {idx} [, {default}]) *get()*
Get item {idx} from |List| {list}. When this item is not