Disable noisy bells

This commit is contained in:
2021-05-31 15:57:29 +02:00
parent 0f8362fb68
commit 7cf33dc7a3
2 changed files with 11 additions and 0 deletions

1
.inputrc Normal file
View File

@@ -0,0 +1 @@
set bell-style none

10
.vimrc
View File

@@ -67,6 +67,16 @@ highlight ColorColumn ctermbg=4
filetype plugin indent on " required filetype plugin indent on " required
syntax on syntax on
" These two lines will fully disable any visual or noisy bell
" on both windows and linux. >:)
set noerrorbells visualbell t_vb=
autocmd GUIEnter * set visualbell t_vb=
" Make indenting and unindenting in visual mode retain the selection so
" you don't have to re-select or type gv every time.
vnoremap > ><CR>gv
vnoremap < <<CR>gv
set tabstop=4 " show existing tab with 4 spaces width set tabstop=4 " show existing tab with 4 spaces width
set shiftwidth=4 " when indenting with '>', use 4 spaces width set shiftwidth=4 " when indenting with '>', use 4 spaces width
set expandtab " On pressing tab, insert 4 spaces set expandtab " On pressing tab, insert 4 spaces