mirror of
https://github.com/zoriya/vim.git
synced 2026-06-03 12:07:11 +00:00
Updated runtime files.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
*eval.txt* For Vim version 7.4. Last change: 2016 Jul 31
|
||||
*eval.txt* For Vim version 7.4. Last change: 2016 Aug 02
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -262,7 +262,7 @@ it. To change a list in-place see |list-modification| below.
|
||||
|
||||
|
||||
Sublist ~
|
||||
|
||||
*sublist*
|
||||
A part of the List can be obtained by specifying the first and last index,
|
||||
separated by a colon in square brackets: >
|
||||
:let shortlist = mylist[2:-1] " get List [3, "four"]
|
||||
@@ -990,10 +990,10 @@ Examples: >
|
||||
:let s = line(".")[4:] " from the fifth byte to the end
|
||||
:let s = s[:-3] " remove last two bytes
|
||||
<
|
||||
*sublist* *slice*
|
||||
*slice*
|
||||
If expr8 is a |List| this results in a new |List| with the items indicated by
|
||||
the indexes expr1a and expr1b. This works like with a String, as explained
|
||||
just above, except that indexes out of range cause an error. Examples: >
|
||||
just above. Also see |sublist| below. Examples: >
|
||||
:let l = mylist[:3] " first four items
|
||||
:let l = mylist[4:4] " List with one item
|
||||
:let l = mylist[:] " shallow copy of a List
|
||||
@@ -8292,7 +8292,7 @@ See |:verbose-cmd| for more information.
|
||||
: let x += 1
|
||||
: return x
|
||||
: endfunction
|
||||
: return function('Bar')
|
||||
: return funcref('Bar')
|
||||
:endfunction
|
||||
|
||||
:let F = Foo()
|
||||
|
||||
Reference in New Issue
Block a user