diff --git a/vimrc b/vimrc index a1a879a..d2b4b50 100644 --- a/vimrc +++ b/vimrc @@ -139,9 +139,9 @@ set foldcolumn=1 let g:mapleader = "\" " replace current word with last yanked/deleted text -nnoremap pp "_diwP +nnoremap rr "_diwP " replace current word with last yanked text -nnoremap py diw"0P +nnoremap ry diw"0P " jk acts as escape in insert inoremap jk @@ -191,24 +191,30 @@ vnoremap gr y:grep! -R " . nnoremap td :grep! -R '// *TODO' .:botright cwindow:echo len(getqflist()) 'TODOs' " brace/quotes completion -inoremap {{ {} -inoremap {{{ {}O -inoremap {{{; {};O -inoremap }} {{}} -inoremap (( () -inoremap ((; (); -inoremap "" "" -inoremap ""; ""; -inoremap '' '' -inoremap ''; ''; -inoremap [[ [] -inoremap [[[ []O +inoremap {{ {} +inoremap { {}O +inoremap {; {};O +inoremap {{ {{}} -inoremap ;; ; +inoremap (( () +inoremap (; (); + +inoremap [[ [] +inoremap [ []O + +inoremap "" "" +inoremap "; ""; +inoremap '' '' +inoremap '; ''; + +inoremap ;; ; nnoremap nn :set invrelativenumber nnoremap hl :nohlsearch +" devdocs mapping +nnoremap dd :DD + " abbreviations iabbrev adn and iabbrev waht what @@ -540,7 +546,5 @@ command! -nargs=* DD silent! call system(len(split(, ' ')) == 0 ? \ s:stub . &ft . ' ' . expand('') . "'" : len(split(, ' ')) == 1 ? \ s:stub . &ft . ' ' . . "'" : s:stub . . "'") -nnoremap dd :DD - " ze end