From 3832824b399666e45e69362dc8a080dee9447a22 Mon Sep 17 00:00:00 2001 From: ManjaroOne666 Date: Tue, 20 Mar 2018 22:20:40 +0000 Subject: [PATCH] silent mappings, formatting --- vimrc.d/mappings.vim | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/vimrc.d/mappings.vim b/vimrc.d/mappings.vim index 59be72e..e4bc783 100644 --- a/vimrc.d/mappings.vim +++ b/vimrc.d/mappings.vim @@ -1,18 +1,18 @@ " key #mappings{{{ -nnoremap rc :so $MYVIMRC +nnoremap rc :so $MYVIMRC " Focus on current fold, close the rest -nnoremap zz zMzvzt +nnoremap zz zMzvzt " replace current word with last yanked/deleted text -nnoremap rr "_diwP +nnoremap rr "_diwP " replace current word with last yanked text -nnoremap ry diw"0P +nnoremap ry diw"0P inoremap jk -nnoremap A :call CheckLineEnding() +nnoremap A :call CheckLineEnding() nnoremap co :!clear; @@ -59,8 +59,6 @@ nnoremap qh :chistory nnoremap qp :colder nnoremap qn :cnewer -nnoremap nh :noh - " quick grep of visual selection vnoremap gr y:grep! -R " . @@ -68,7 +66,7 @@ vnoremap gr y:grep! -R " . nnoremap td :grep! -R '// *TODO' .:botright cwindow:echo len(getqflist()) 'TODOs' " brace/quotes completion -inoremap {{ {} +inoremap {{ {} inoremap { {}O inoremap {; {};O inoremap }} {{}} @@ -76,7 +74,7 @@ inoremap }} {{}} inoremap (( () inoremap (; (); -inoremap [[ [] +inoremap [[ [] inoremap [ []O inoremap "" "" @@ -84,10 +82,10 @@ inoremap "; ""; inoremap '' '' inoremap '; ''; -inoremap ;; ; +inoremap ;; ; -nnoremap nn :set invrelativenumber -nnoremap hl :nohlsearch +nnoremap nn :set invrelativenumber +nnoremap nh (&hls && v:hlsearch ? ':nohls' : ':set hls')."\n" " devdocs mapping nnoremap dd :DD