From 059b40033e9041667a85be6bf18beda33b5dd20a Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 19 Jun 2018 17:11:18 +1200 Subject: Remove some unneeded silencing --- vim/vimrc | 40 ++++++++++++++++++++-------------------- 1 file 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 [b :bprevious -nnoremap ]b :bnext +nnoremap [b :bprevious +nnoremap ]b :bnext " 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 d :read !date + nnoremap d :read !date " \D: UTC - nnoremap D :read !date -u + nnoremap D :read !date -u 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 l :set list! list? +nnoremap l :set list! list? " Don't show line numbers by default, but \n toggles them set nonumber -nnoremap n :set number! number? +nnoremap n :set number! number? " 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 ZW :write! -nnoremap ZA :wall! +nnoremap ZW :write! +nnoremap ZA :wall! " 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 f :setlocal formatoptions? +nnoremap f :setlocal formatoptions? " 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 i :set incsearch! incsearch? + nnoremap i :set incsearch! incsearch? " Highlight search results, \h toggles this set hlsearch - nnoremap h :set hlsearch! hlsearch? + nnoremap h :set hlsearch! hlsearch? " 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 s :setlocal spell! spell? + nnoremap s :setlocal spell! spell? " 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 u :setlocal spelllang=en_us spelllang? - nnoremap z :setlocal spelllang=en_nz spelllang? + nnoremap u :setlocal spelllang=en_us spelllang? + nnoremap z :setlocal spelllang=en_nz spelllang? endif @@ -363,7 +363,7 @@ endif " Don't wrap by default, but use \w to toggle it on or off quickly set nowrap -nnoremap w :set wrap! wrap? +nnoremap w :set wrap! wrap? " 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 x StripTrailingWhitespace if has('user_commands') " \a: Reformat paragraphs to 'textwidth' on all insert or delete operations - nnoremap a :ToggleOptionFlagLocal formatoptions a + nnoremap a :ToggleOptionFlagLocal formatoptions a " \c: Reformat comments to 'textwidth' - nnoremap c :ToggleOptionFlagLocal formatoptions c + nnoremap c :ToggleOptionFlagLocal formatoptions c " \j: Delete comment leaders when joining lines - nnoremap j :ToggleOptionFlagLocal formatoptions j + nnoremap j :ToggleOptionFlagLocal formatoptions j " \t: Reformat non-comment text to 'textwidth' - nnoremap t :ToggleOptionFlagLocal formatoptions t + nnoremap t :ToggleOptionFlagLocal formatoptions t 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 -- cgit v1.2.3