vim: better replace
Signed-off-by: Michael Grote <michael.grote@posteo.de>
This commit is contained in:
parent
cc5fb33dc3
commit
ed08e93600
1 changed files with 8 additions and 0 deletions
8
.vimrc
8
.vimrc
|
@ -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>/
|
||||||
|
|
Loading…
Reference in a new issue