aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-11-21 22:55:43 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-11-21 22:55:43 +1300
commita95245c9911a3836d5d0728d6079e4c79571c600 (patch)
treed30d25400a073a1f47548c3d53c5f4c7b713d09f
parentcacff41bf2f9fa89dae49010ee4c7ab4361ce030 (diff)
downloaddotfiles-a95245c9911a3836d5d0728d6079e4c79571c600.tar.gz
dotfiles-a95245c9911a3836d5d0728d6079e4c79571c600.zip
Restore 'visualbell' Vim setting
Commit 35ba8df removed this, but the bell still rings on a TTY and in an X terminal outside of tmux. I didn't notice because the machine I was using doesn't have a PC speaker.
-rw-r--r--vim/vimrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
index d017dfe9..03844def 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -215,6 +215,9 @@ if exists('+virtualedit')
set virtualedit+=block
endif
+" Never beep at me
+set visualbell t_vb=
+
" Stack normal/visual/select Ctrl-L to clear search highlight
nnoremap <silent> <C-L> :<C-U>nohlsearch<CR><C-L>
vnoremap <silent> <C-L> :<C-U>nohlsearch<CR>gv<C-L>