Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: wanted: viins-mode and digit argument with a,i,A and such



On Jul 17,  2:02pm, Peter Stephenson wrote:
} Subject: Re: wanted: viins-mode and digit argument with a,i,A and such
}
} > hi all!
} > 
} > when i use bindkey -e, i can insert one character 10 times with
} > ESC 10 <character>.
} > 
} > With vi one normally uses something like 10i<character>.
} > This is not possible with ZSH ( bindkey -v set ).
} 
} If you are using 3.1, try a widget like [...]

I generally agree with the new philosophy of not adding things as builtins
that can be done as widgets, but this is so unbelievably trivial and so
completely general that I have no idea why we shouldn't do it:

Index: Src/Zle/zle_vi.c
===================================================================
@@ -82,6 +82,8 @@
 	vichgbufptr = 1;
 	vichgrepeat = 0;
     }
+    if (zmod.flags & MOD_MULT)
+	prefixflag = 1;
 }
 
 /**/

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   



Messages sorted by: Reverse Date, Date, Thread, Author