Lines Matching defs:motion
116 int lastmotion; /* last motion */
123 int repeat; /* repeat count for motion cmds */
124 int lastrepeat; /* last repeat count for motion cmds */
1129 /*{ DELMOTION( motion, mode )
1131 * Delete thru motion.
1141 static int delmotion(Vi_t *vp,int motion, int mode)
1152 /*** fake out the motion routines by appending a blank ***/
1155 end = mvcursor(vp,motion);
1161 if( mode=='c' && end>begin && strchr("wW", motion) )
1175 if( strchr("eE;,TtFf%", motion) )
1180 delta = -delta + (motion=='%');
1526 /*{ MVCURSOR( motion )
1528 * This routine will move the virtual cursor according to motion
1535 static int mvcursor(register Vi_t* vp,register int motion)
1542 switch(motion)
1567 switch(motion=getcount(vp,ed_getchar(vp->ed,-1)))
1591 motion = last_virt;
1595 motion = first_virt;
1604 ed_ungetchar(vp->ed,motion);
1611 motion = first_virt;
1616 motion = last_virt;
1620 if( incr*tcur_virt < motion)
1623 if( incr*tcur_virt > motion)
1624 tcur_virt = motion;
1633 backword(vp,vp->repeat, motion);
1642 endword(vp, vp->repeat, motion);
1653 if(motion==';')
1662 if(motion==',')
1681 vp->last_find = motion;
1736 forward(vp,vp->repeat, motion);
2575 case 'y': /** yank thru motion **/