Find the answer to your Linux question:
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 ...
  1. #1
    Just 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....

  2. #2
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,281
    You tried these?

    set noerrorbells
    set visualbells
    set t_vb=

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  3. #3
    Just 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?

  4. #4
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,281
    It too is a screen flash. Some terminals cannot do screen flash but if yours does then use;

    set vb t_vb=''."

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  5. #5
    Just 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...

  6. #6
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,281
    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.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  7. #7
    Just 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?

  8. #8
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,281
    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 ~.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...