Tips: disable audible and visual bells

This commit is contained in:
Marco Hinz 2016-01-18 13:04:13 +01:00
parent 50e41cb2e9
commit 4e8bc2938e
2 changed files with 12 additions and 0 deletions

View File

@ -20,6 +20,7 @@ All notable changes to this project will be documented in this file.
- Tips: [Reload a file on saving](README.md#reload-a-file-on-saving)
- Tips: [Smarter cursorline](README.md#smarter-cursorline)
- Tips: [Saner CTRL-L](README.md#saner-ctrl-l)
- Tips: [Disable audible and visual bells](README.md#disable-audible-and-visual-bells)
- Usage: [Editing remote files](README.md#editing-remote-files)
- Usage: [Restore cursor position when opening file](README.md#restore-cursor-position-when-opening-file)
- Usage: [MatchIt](README.md#matchit)

View File

@ -50,6 +50,7 @@ added every day. Things about to be added can be found here:
- [Saner behavior of n and N](#saner-behavior-of-n-and-n)
- [Saner command-line history](#saner-command-line-history)
- [Saner CTRL-L](#saner-ctrl-l)
- [Disable audible and visual bells](#disable-audible-and-visual-bells)
- [Quickly move current line](#quickly-move-current-line)
- [Quickly add empty lines](#quickly-add-empty-lines)
- [Quickly edit your macros](#quickly-edit-your-macros)
@ -1104,6 +1105,16 @@ highlighting rules), plus force updating the syntax highlighting in diff mode:
nnoremap <leader>l :nohlsearch<cr>:diffupdate<cr>:syntax sync fromstart<cr><c-l>
```
#### Disable audible and visual bells
```viml
set noerrorbells
set novisualbell
set t_vb=
```
See [Vim Wiki: Disable beeping](http://vim.wikia.com/wiki/Disable_beeping).
#### Quickly move current line
Sometimes I need a quick way to move the current line above or below: