diff options
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/eval.txt | 27 | ||||
-rw-r--r-- | runtime/lang/menu_de_de.latin1.vim | 2 | ||||
-rw-r--r-- | runtime/syntax/spec.vim | 2 |
3 files changed, 26 insertions, 5 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 43d5954ec..5402a2cd4 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 03 +*eval.txt* For Vim version 7.0aa. Last change: 2005 Jan 04 VIM REFERENCE MANUAL by Bram Moolenaar @@ -3524,11 +3524,13 @@ This would call the function "my_func_whizz(parameter)". :let &{option-name} = {expr1} *:let-option* *:let-star* Set option {option-name} to the result of the - expression {expr1}. The value is always converted to - the type of the option. + expression {expr1}. A String or Number value is + always converted to the type of the option. For an option local to a window or buffer the effect is just like using the |:set| command: both the local value and the global value is changed. + Example: > + :let &path = &path . ',/usr/local/include' :let &l:{option-name} = {expr1} Like above, but only set the local value of an option @@ -3538,6 +3540,25 @@ This would call the function "my_func_whizz(parameter)". Like above, but only set the global value of an option (if there is one). Works like |:setglobal|. +:let [{name1}, {name2}, ...] = {expr1} *:let-unpack* + {expr1} must evaluate to a List. The first item in + the list is assigned to {name1}, the second item to + {name2}, etc. + The number of names must match the number of items in + the List. + Each name can be one of the items of the ":let" + command as mentioned above. + Example: > + :let [s, item] = GetItem(s) + +:let [{name}, ..., ; {lastname}] = {expr1} + Like above, but the List may have more items than + there are names. A list of the remaining items is + assigned to {lastname}. If there are no remaining + items {lastname} is set to an empty list. + Example: > + :let [a, b; rest] = ["aval", "bval", 3, 4] +< *E106* :let {var-name} .. List the value of variable {var-name}. Several variable names may be given. diff --git a/runtime/lang/menu_de_de.latin1.vim b/runtime/lang/menu_de_de.latin1.vim index 15ecf53d3..f0ed55f04 100644 --- a/runtime/lang/menu_de_de.latin1.vim +++ b/runtime/lang/menu_de_de.latin1.vim @@ -1,6 +1,6 @@ " Menu Translations: German / Deutsch " Maintainer: Johannes Zellner <johannes@zellner.org> -" Originally By: Marcin Dalecki <dalecki@cs.net.pl> +" Originally By: Marcin Dalecki <martin@dalecki.de> " Last Change: Sat, 20 Apr 2002 19:02:42 CEST " vim:set foldmethod=marker tabstop=8: diff --git a/runtime/syntax/spec.vim b/runtime/syntax/spec.vim index dcc9a54e6..cb2f30475 100644 --- a/runtime/syntax/spec.vim +++ b/runtime/syntax/spec.vim @@ -3,7 +3,7 @@ " Language: SPEC: Build/install scripts for Linux RPM packages " Maintainer: Donovan Rebbechi elflord@pegasus.rutgers.edu " URL: http://pegasus.rutgers.edu/~elflord/vim/syntax/spec.vim -" Last Change: Fri Dec 3 11:54 EST 2004 Martin Dalecki +" Last Change: Fri Dec 3 11:54 EST 2004 Marcin Dalecki " For version 5.x: Clear all syntax items " For version 6.x: Quit when a syntax file was already loaded |