issue regarding ESC in vi
Bernhard Fischer
rep.dot.nop at gmail.com
Sat Sep 15 04:28:30 PDT 2007
On Fri, Sep 14, 2007 at 06:00:23PM -0400, Mike Frysinger wrote:
>On Friday 07 September 2007, Paul Fox wrote:
>> > On Thursday 06 September 2007 22:49, Tapojoy chatterjee wrote:
>> > > hi
>> > > whenever we press ESC in vi there is flashing of the terminal..is
>> > > there a way around it
>> >
>> > I'm not using vi myself, but looking at vi.c, there is some obscure way
>> > to toggle bell/flash notification.
>> >
>> > grep for "bell" in vi.c
>> :
>> :set noflash
>
>i dont see this option in POSIX anywhere and default vi nowadays doesnt do
>that by default ... perhaps we should invert the defaults ? i dont see value
>in something that annoys most people and is pretty worthless ...
seconded.
Index: editors/vi.c
===================================================================
--- editors/vi.c (revision 19851)
+++ editors/vi.c (working copy)
@@ -338,7 +338,7 @@ int vi_main(int argc, char **argv)
}
#endif
- vi_setops = VI_AUTOINDENT | VI_SHOWMATCH | VI_IGNORECASE | VI_ERR_METHOD;
+ vi_setops = VI_AUTOINDENT | VI_SHOWMATCH | VI_IGNORECASE;
#if ENABLE_FEATURE_VI_YANKMARK
memset(reg, 0, sizeof(reg)); // init the yank regs
#endif
More information about the busybox
mailing list