On Sun, 03 Sep 2006 14:23:26 +0200
Bram Moolenaar <[EMAIL PROTECTED]> wrote:
>
> Yakov Lerner wrote:
>
> > On 9/3/06, Bram Moolenaar <[EMAIL PROTECTED]> wrote:
> >
> > > > I still miss pre and post increment and decrement operators
> > > > (avoids a separate :let command by itself),
> > >
> > > You mean, as in:
> > >
> > > :let linenr = a++
> > >
> > > I don't know how difficult this is to implement, and if there are
> > > any conflicts in the syntax.
> >
> > And then probably
> > :let linenr ++
> > , too ?
>
> That looks weird. You can do it already with:
>
> :let linenr += 1
>
think of is as in e.g., the C programming language.
for (x =0; x<max; x++){
here you could have written
for (x =0; x<max; x+=1){
The smart part is when it is as a pre-increment
for (x=0;x<max; ++x)
now you cant use your x+=1 anymore (at least not directly).
--
Kim Schulz | Private : http://www.schulz.dk
[EMAIL PROTECTED] | Business: http://www.devteam.dk
+45 5190 4262 | Sparetime: http://www.fundanemt.com