Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1273533
  • 博文数量: 482
  • 博客积分: 13297
  • 博客等级: 上将
  • 技术积分: 2890
  • 用 户 组: 普通用户
  • 注册时间: 2009-10-12 16:25
文章分类

全部博文(482)

文章存档

2012年(9)

2011年(407)

2010年(66)

分类: LINUX

2011-08-25 15:32:16

set novisualbell
====
http://bluesea.chinaunix.com/space.php?uid=20263484&do=blog&id=110193

------------------------------------------------------------------------------------------------
vim的help中有这么一段:
Use visual bell instead of beeping.  The terminal code to display the
    visual bell is given with 't_vb'.  When no beep or flash is wanted,
    use ":set vb t_vb=".
    Note: When the GUI starts, 't_vb' is reset to its default value.  You
    might want to set it again in your |gvimrc|.

    In the GUI, 't_vb' defaults to "|f", which inverts the display
    for 20 msec.  If you want to use a different time, use "|40f",
    where 40 is the time in msec.
    Does not work on the Amiga, you always get a screen flash.
    Also see 'errorbells'.
所以光是在.vimrc中set novisualbell还不行,gvimrc中还需要添加。
阅读(1292) | 评论(2) | 转发(0) |
给主人留下些什么吧!~~

Alan05212011-09-23 22:38:05

全部注释掉是不闪屏了,但是声音出来了,真是按下葫芦起了瓢啊。
看来.gvim中还是要添加"t_vb="啊。
或者
http://markmail.org/message/qcyc3exvuondyb77#query:vim%20bell+page:1+mid:yyifzvxcxxafoqw7+state:results所说:
”set noerrorbells novisualbell autocmd VimEnter * set vb t_vb= “

Alan05212011-09-23 14:45:53

"关闭提示音
"set noerrorbells
"set novisualbell
"set vb t_vb=
我把这些都注释掉并不闪烁报警,而只留set vb t_vb=一项时报警,难道我以前只有这一条语言?
不知道当时是抄了谁的.vimrc呢