Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Done Small enhancement to @WORD

May
12,846
164
Let @WORD[n-,string] return all words from the nth one to the end.

As it is now, that syntax is accepted, but does something peculiar, giving n+1 words starting at word n.
Code:
v:\> echo %@word[1-,a b c d e f g h i]
b c

v:\> echo %@word[2-,a b c d e f g h i]
c d e

v:\> echo %@word[3-,a b c d e f g h i]
d e f g
 

Similar threads

Back
Top