From ed08e936004e2e4c157ac6f4fd614df4dff13bd6 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Sun, 24 Nov 2024 20:31:05 +0100 Subject: [PATCH] vim: better replace Signed-off-by: Michael Grote --- .vimrc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.vimrc b/.vimrc index 4cbbab0..c76cefa 100644 --- a/.vimrc +++ b/.vimrc @@ -272,3 +272,11 @@ augroup END " polyglot " disable reindenting of the current line in insert mode 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 :%s//