vim: better replace

Signed-off-by: Michael Grote <michael.grote@posteo.de>
This commit is contained in:
Michael Grote 2024-11-24 20:31:05 +01:00
parent cc5fb33dc3
commit ed08e93600

8
.vimrc
View file

@ -272,3 +272,11 @@ augroup END
" polyglot " polyglot
" disable reindenting of the current line in insert mode " disable reindenting of the current line in insert mode
autocmd BufEnter * set indentexpr= autocmd BufEnter * set indentexpr=
" center search
nnoremap n nzz
nnoremap N Nzz
" ctrl+r for Replace
" add needed end of command: https://vim.fandom.com/wiki/Search_and_replace
nnoremap <C-R> :%s/<C-r><C-w>/