diff --git a/.inputrc b/.inputrc new file mode 100644 index 0000000..ac81a39 --- /dev/null +++ b/.inputrc @@ -0,0 +1 @@ +set bell-style none diff --git a/.vimrc b/.vimrc index 971b5e8..397f6e8 100755 --- a/.vimrc +++ b/.vimrc @@ -67,6 +67,16 @@ highlight ColorColumn ctermbg=4 filetype plugin indent on " required 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 > >gv +vnoremap < <gv + set tabstop=4 " show existing tab with 4 spaces width set shiftwidth=4 " when indenting with '>', use 4 spaces width set expandtab " On pressing tab, insert 4 spaces