Improve Shift-R substitution
Shift-R now captures the original word so it can be used in the substitution pattern and type less.
This commit is contained in:
parent
ee35298a03
commit
372f6c2d7e
1 changed files with 2 additions and 2 deletions
4
vimrc
4
vimrc
|
@ -545,8 +545,8 @@ vnoremap <C-d> :copy '><CR>
|
||||||
nnoremap dx 0"_d$
|
nnoremap dx 0"_d$
|
||||||
nnoremap dcx 0d$
|
nnoremap dcx 0d$
|
||||||
nnoremap <leader>: :let @* = @:<CR>
|
nnoremap <leader>: :let @* = @:<CR>
|
||||||
nnoremap <expr> <S-r> ":%s/\\<".expand("<cword>")."\\>/"
|
nnoremap <expr> R ":%s/\\<\\(".expand("<cword>")."\\)\\>/"
|
||||||
vnoremap <expr> <S-r> ":<C-u>%s/".VisualSelection()."/"
|
vnoremap <expr> R ":<C-u>%s/".VisualSelection()."/"
|
||||||
" Put in new line with indentation
|
" Put in new line with indentation
|
||||||
nnoremap ]p :let [content, type]=
|
nnoremap ]p :let [content, type]=
|
||||||
\[getreg(v:register), getregtype(v:register)] \|
|
\[getreg(v:register), getregtype(v:register)] \|
|
||||||
|
|
Loading…
Reference in a new issue