Results 1 to 8 of 8
Hi folks,
I got a problem with turning off the beep sound in vi editor. I tried enabling the 'set bell-style = none' in /etc/inputrc but it only worked for ...
- 08-19-2009 #1Just Joined!
- Join Date
- Aug 2009
- Posts
- 6
Turn off beep in vi editor
Hi folks,
I got a problem with turning off the beep sound in vi editor. I tried enabling the 'set bell-style = none' in /etc/inputrc but it only worked for bash
. I also tried 'set noerrorbells' in vi editor but still it gives me a beep sound when it reaches EOF (end of file).
Any help would be highly appreciated....
- 08-19-2009 #2
You tried these?
set noerrorbells
set visualbells
set t_vb=
- 08-19-2009 #3Just Joined!
- Join Date
- Aug 2009
- Posts
- 6
I tried the first one but it didn't work....and i guess the second one is to enable visualbell when u have disabled the errorbell to let u know visually. What exactly does the third one do?
- 08-19-2009 #4
It too is a screen flash. Some terminals cannot do screen flash but if yours does then use;
set vb t_vb=''."
- 08-20-2009 #5Just Joined!
- Join Date
- Aug 2009
- Posts
- 6
hey dat did work....thanks a lot but is there any way to set dat as default for vi editor, like how we do for the terminal in /etc/inputrc....
One googling one website said that there is something called .vimrc where u can set the default...but there was no such file in my linux version (red hat linux 9)
also can i disable both the visualbell and the error bell in vi editor
thanks a lot for replying frnd...
- 08-20-2009 #6
RH9? Time to upgrade that version is so out of date.
If you want to use RH then look at Centos which is the RH SRPMs recompiled.
Or if you are looking for bleeding edge and upgrading a lot then look at RH test bed software Fedora.
As to VI look at /etc/virc to place them in.
- 08-21-2009 #7Just Joined!
- Join Date
- Aug 2009
- Posts
- 6
hey lazydog there is no such file as /etc/virc (at least in my distro)...and is it possible to disable both visualbell and the error bell in vi editor?
- 08-21-2009 #8
You can add then in command mode.
All of your question can be answered by using Google.
There has to be a config file somewhere on your system if not in the /etc then in you ~.


Reply With Quote