Reply to message «Re: Vim Script grammer», sent 22:51:15 13 July 2011, Wednesday by Andy Wokula:
At least five ways and three of them are only for built-ins. Great. By the way, in your example wincmd will also consume «"» in place of bar without error though it does not make sense. Original message: > Am 11.07.2011 21:05, schrieb ZyX: > > Reply to message «Re: Vim Script grammer», > > sent 22:38:50 11 July 2011, Monday > > > > by Peter Odding: > >> - Vim script commands determine how their arguments are parsed so > >> there > >> > >> doesn't seem to be a universal way to parse Vim script code -- it > >> depends on the commands involved (e.g. normally you can use | to begin a > >> new command on the same line but this does not work if the line starts > >> with any of the :map commands) > > > > It applies only to builtins and there is only three behaviors that should > > be taken into consideration while splitting stream into sequence of > > commands: 1. Bar and NL can be taken as a part of a string literal (only > > for builtins, NL behavior depends on context), in other cases they > > terminate the command. Comments are not allowed. > > 2. Bar and NL terminate the command. Comments are allowed. > > 3. Bar does not terminate the command. Comments are not allowed. NL > > behavior depends on context. > > If you know more, please write this here. > > Special case: > > Bar is part of the command and comments are allowed: > :wincmd | " comment
signature.asc
Description: This is a digitally signed message part.
