summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2005-01-09 21:20:18 +0000
committerBram Moolenaar <Bram@vim.org>2005-01-09 21:20:18 +0000
commit540d6e3a019dffe35f9e6655e0d2e5c86214fb3b (patch)
tree66b7f174828dafd43f46a433beb46152daa85efd /runtime
parenta40c500a4cf40a604851e4d22ba790a08dcbba5f (diff)
downloadvim-540d6e3a019dffe35f9e6655e0d2e5c86214fb3b.zip
updated for version 7.0036
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/eval.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index 73b50fc76..3f6889e98 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -1,4 +1,4 @@
-*eval.txt* For Vim version 7.0aa. Last change: 2005 Jan 08
+*eval.txt* For Vim version 7.0aa. Last change: 2005 Jan 09
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -167,9 +167,9 @@ separated by a colon in square brackets: >
Omitting the first index is similar to zero. Omitting the last index is
similar to -1. The difference is that there is no error if the items are not
available. >
- :let endlist = [2:] " from item 2 to the end: [3, "four"]
- :let shortlist = [2:2] " List with one item: [3]
- :let otherlist = [:] " make a copy of the List
+ :let endlist = mylist[2:] " from item 2 to the end: [3, "four"]
+ :let shortlist = mylist[2:2] " List with one item: [3]
+ :let otherlist = mylist[:] " make a copy of the List
List identity ~
@@ -236,7 +236,7 @@ To change a specific item of a list use |:let| this way: >
:let listlist[0][3] = item
To change part of a list you can specify the first and last item to be
-modified. The value must mach the range of replaced items: >
+modified. The value must match the range of replaced items: >
:let list[3:5] = [3, 4, 5]
Adding and removing items from a list is done with functions. Here are a few