Mercurial > vim
comparison runtime/doc/eval.txt @ 164:8b0ee9d57d7f
updated for version 7.0050
author | vimboss |
---|---|
date | Sat, 12 Feb 2005 14:29:27 +0000 |
parents | 6df0106fc595 |
children | 4d9eabb1396e |
comparison
equal
deleted
inserted
replaced
163:06bc859d1a32 | 164:8b0ee9d57d7f |
---|---|
1 *eval.txt* For Vim version 7.0aa. Last change: 2005 Feb 07 | 1 *eval.txt* For Vim version 7.0aa. Last change: 2005 Feb 11 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
1897 the cursor will be positioned at the last character in the | 1897 the cursor will be positioned at the last character in the |
1898 line. | 1898 line. |
1899 If {col} is zero, the cursor will stay in the current column. | 1899 If {col} is zero, the cursor will stay in the current column. |
1900 | 1900 |
1901 | 1901 |
1902 deepcopy({expr}) *deepcopy()* *E698* | 1902 deepcopy({expr}[, {noref}]) *deepcopy()* *E698* |
1903 Make a copy of {expr}. For Numbers and Strings this isn't | 1903 Make a copy of {expr}. For Numbers and Strings this isn't |
1904 different from using {expr} directly. | 1904 different from using {expr} directly. |
1905 When {expr} is a List a full copy is created. This means | 1905 When {expr} is a List a full copy is created. This means |
1906 that the original List can be changed without changing the | 1906 that the original List can be changed without changing the |
1907 copy, and vise versa. When an item is a List, a copy for it | 1907 copy, and vise versa. When an item is a List, a copy for it |
1908 is made, recursively. Thus changing an item in the copy does | 1908 is made, recursively. Thus changing an item in the copy does |
1909 not change the contents of the original List. | 1909 not change the contents of the original List. |
1910 When {noref} is omitted or zero a contained List or Dictionary | |
1911 is only copied once. All references point to this single | |
1912 copy. With {noref} set to 1 every occurrence of a List or | |
1913 Dictionary results in a new copy. This also means that a | |
1914 cyclic reference causes deepcopy() to fail. | |
1910 *E724* | 1915 *E724* |
1911 Nesting is possible up to 100 levels. When there is an item | 1916 Nesting is possible up to 100 levels. When there is an item |
1912 that refers back to a higher level making a deep copy will | 1917 that refers back to a higher level making a deep copy with |
1913 fail. | 1918 {noref} set to 1 will fail. |
1914 Also see |copy()|. | 1919 Also see |copy()|. |
1915 | 1920 |
1916 delete({fname}) *delete()* | 1921 delete({fname}) *delete()* |
1917 Deletes the file by the name {fname}. The result is a Number, | 1922 Deletes the file by the name {fname}. The result is a Number, |
1918 which is 0 if the file was deleted successfully, and non-zero | 1923 which is 0 if the file was deleted successfully, and non-zero |
4397 Vim will look for the file "autoload/foo/bar.vim" in 'runtimepath'. | 4402 Vim will look for the file "autoload/foo/bar.vim" in 'runtimepath'. |
4398 | 4403 |
4399 The name before the first colon must be at least two characters long, | 4404 The name before the first colon must be at least two characters long, |
4400 otherwise it looks like a scope, such as "s:". | 4405 otherwise it looks like a scope, such as "s:". |
4401 | 4406 |
4402 Note that the script will be sourced again and again if a function is called | 4407 Note that when you make a mistake and call a function that is supposed to be |
4403 that looks like it is defined in the autoload script but it isn't. | 4408 defined in an autoload script, but the script doesn't actually define the |
4409 function, the script will be sourced every time you try to call the function. | |
4404 | 4410 |
4405 ============================================================================== | 4411 ============================================================================== |
4406 6. Curly braces names *curly-braces-names* | 4412 6. Curly braces names *curly-braces-names* |
4407 | 4413 |
4408 Wherever you can use a variable, you can use a "curly braces name" variable. | 4414 Wherever you can use a variable, you can use a "curly braces name" variable. |