On Sat, Dec 08, 2007 at 12:12:55AM +1100, Doug Kearns wrote: > var [lhs, rhs] = args.split(/\s+/); Just to note that this has different semantics, for strings like: :map a b c which is interpreted correctly by vim, but with this regexp it would be like: :map a b -- martin