Lines Matching refs:motion
111 int lastmotion; /* last motion */
118 int repeat; /* repeat count for motion cmds */
119 int lastrepeat; /* last repeat count for motion cmds */
1177 /*{ DELMOTION( motion, mode )
1179 * Delete thru motion.
1189 static int delmotion(Vi_t *vp,int motion, int mode)
1200 /*** fake out the motion routines by appending a blank ***/
1203 end = mvcursor(vp,motion);
1209 if( mode=='c' && end>begin && strchr("wW", motion) )
1223 if( strchr("eE;,TtFf%", motion) )
1228 delta = -delta + (motion=='%');
1587 /*{ MVCURSOR( motion )
1589 * This routine will move the virtual cursor according to motion
1596 static int mvcursor(register Vi_t* vp,register int motion)
1603 switch(motion)
1628 switch(motion=getcount(vp,ed_getchar(vp->ed,-1)))
1656 motion = last_virt;
1660 motion = first_virt;
1669 ed_ungetchar(vp->ed,motion);
1676 motion = first_virt;
1681 motion = last_virt;
1685 if( incr*tcur_virt < motion)
1688 if( incr*tcur_virt > motion)
1689 tcur_virt = motion;
1698 backword(vp,vp->repeat, motion);
1707 endword(vp, vp->repeat, motion);
1718 if(motion==';')
1727 if(motion==',')
1746 vp->last_find = motion;
1801 forward(vp,vp->repeat, motion);
2665 case 'y': /** yank thru motion **/