aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-06-19 17:11:18 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-19 17:11:18 +1200
commit059b40033e9041667a85be6bf18beda33b5dd20a (patch)
treee673d151402f2d582eeaadbae41c65a40fbec4b7
parentRemove unneeded <silent> (diff)
downloaddotfiles-059b40033e9041667a85be6bf18beda33b5dd20a.tar.gz
dotfiles-059b40033e9041667a85be6bf18beda33b5dd20a.zip
Remove some unneeded silencing
-rw-r--r--vim/vimrc40
1 files changed, 20 insertions, 20 deletions
diff --git a/vim/vimrc b/vim/vimrc
index decd756c..450e1317 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -63,8 +63,8 @@ if v:version >= 701
endif
" Cycle back and forth through buffers.
-nnoremap <silent> [b :<C-U>bprevious<CR>
-nnoremap <silent> ]b :<C-U>bnext<CR>
+nnoremap [b :<C-U>bprevious<CR>
+nnoremap ]b :<C-U>bnext<CR>
" Keep plenty of command and search history, because disk space is cheap
set history=2000
@@ -89,9 +89,9 @@ endif
" Current date and time insertion commands, requiring POSIX date(1)
if has('unix')
" \d: Local
- nnoremap <silent> <Leader>d :<C-U>read !date<CR>
+ nnoremap <Leader>d :<C-U>read !date<CR>
" \D: UTC
- nnoremap <silent> <Leader>D :<C-U>read !date -u<CR>
+ nnoremap <Leader>D :<C-U>read !date -u<CR>
endif
" Start with blank comment strings rather than the old default; let the
@@ -153,11 +153,11 @@ set shortmess+=x " [dos format] -> [dos]
" Don't show whitespace characters or end-of-line characters visually by
" default, but make \l toggle between them
set nolist
-nnoremap <silent> <Leader>l :<C-U>set list! list?<CR>
+nnoremap <Leader>l :<C-U>set list! list?<CR>
" Don't show line numbers by default, but \n toggles them
set nonumber
-nnoremap <silent> <Leader>n :<C-U>set number! number?<CR>
+nnoremap <Leader>n :<C-U>set number! number?<CR>
" Use all ancestors of current directory for :find
if has('file_in_path')
@@ -179,8 +179,8 @@ set nomodeline
" I really like ZZ and ZQ, so I wrote a couple more mappings; ZW forces a
" write of the current buffer, but doesn't quit, and ZA forces a write of all
" buffers but doesn't quit
-nnoremap <silent> ZW :<C-U>write!<CR>
-nnoremap <silent> ZA :<C-U>wall!<CR>
+nnoremap ZW :<C-U>write!<CR>
+nnoremap ZA :<C-U>wall!<CR>
" Don't assume a number with a leading zero is octal; it's far more likely a
" zero-padded decimal, so increment and decrement with ^A and ^X on that basis
@@ -193,7 +193,7 @@ if v:version >= 704 || v:version == 703 && has('patch541')
endif
" \f shows the current formatoptions at a glance
-nnoremap <silent> <Leader>f :<C-U>setlocal formatoptions?<CR>
+nnoremap <Leader>f :<C-U>setlocal formatoptions?<CR>
" Match all forms of brackets in pairs (including angle brackets)
set matchpairs+=<:>
@@ -217,11 +217,11 @@ if has('extra_search')
" Searching as I enter my pattern, \i toggles this
set incsearch
- nnoremap <silent> <Leader>i :<C-U>set incsearch! incsearch?<CR>
+ nnoremap <Leader>i :<C-U>set incsearch! incsearch?<CR>
" Highlight search results, \h toggles this
set hlsearch
- nnoremap <silent> <Leader>h :<C-U>set hlsearch! hlsearch?<CR>
+ nnoremap <Leader>h :<C-U>set hlsearch! hlsearch?<CR>
" Pressing ^L will clear highlighting until the next search-related
" operation; quite good because the highlighting gets distracting after
@@ -235,14 +235,14 @@ if has('spell')
" Don't check spelling by default, but bind \s to toggle this
set nospell
- nnoremap <silent> <Leader>s :<C-U>setlocal spell! spell?<CR>
+ nnoremap <Leader>s :<C-U>setlocal spell! spell?<CR>
" Use New Zealand English for spelling by default (it's almost identical
" to British English), but bind \u to switch to US English and \z to
" switch back
set spelllang=en_nz
- nnoremap <silent> <Leader>u :<C-U>setlocal spelllang=en_us spelllang?<CR>
- nnoremap <silent> <Leader>z :<C-U>setlocal spelllang=en_nz spelllang?<CR>
+ nnoremap <Leader>u :<C-U>setlocal spelllang=en_us spelllang?<CR>
+ nnoremap <Leader>z :<C-U>setlocal spelllang=en_nz spelllang?<CR>
endif
@@ -363,7 +363,7 @@ endif
" Don't wrap by default, but use \w to toggle it on or off quickly
set nowrap
-nnoremap <silent> <Leader>w :<C-U>set wrap! wrap?<CR>
+nnoremap <Leader>w :<C-U>set wrap! wrap?<CR>
" When wrapping text, if a line is so long that not all of it can be shown on
" the screen, show as much as possible anyway; by default Vim fills the left
@@ -445,20 +445,20 @@ nmap <Leader>x <Plug>StripTrailingWhitespace
if has('user_commands')
" \a: Reformat paragraphs to 'textwidth' on all insert or delete operations
- nnoremap <silent> <Leader>a :<C-U>ToggleOptionFlagLocal formatoptions a<CR>
+ nnoremap <Leader>a :<C-U>ToggleOptionFlagLocal formatoptions a<CR>
" \c: Reformat comments to 'textwidth'
- nnoremap <silent> <Leader>c :<C-U>ToggleOptionFlagLocal formatoptions c<CR>
+ nnoremap <Leader>c :<C-U>ToggleOptionFlagLocal formatoptions c<CR>
" \j: Delete comment leaders when joining lines
- nnoremap <silent> <Leader>j :<C-U>ToggleOptionFlagLocal formatoptions j<CR>
+ nnoremap <Leader>j :<C-U>ToggleOptionFlagLocal formatoptions j<CR>
" \t: Reformat non-comment text to 'textwidth'
- nnoremap <silent> <Leader>t :<C-U>ToggleOptionFlagLocal formatoptions t<CR>
+ nnoremap <Leader>t :<C-U>ToggleOptionFlagLocal formatoptions t<CR>
endif
" Add the packaged version of matchit.vim included in the distribution, if
" possible; plugin/macros.vim loads this for older Vims
if has('packages')
- silent! packadd! matchit
+ packadd! matchit
endif
" Source all .vim files from ~/.vim/config, which may override any of the