search/replace mapping
This commit is contained in:
parent
34fcde1258
commit
2394b1963d
6
vimrc
6
vimrc
|
@ -1130,7 +1130,9 @@ set concealcursor=
|
|||
"----------------------------------------------------------------------------}}}
|
||||
" #mappings {{{
|
||||
let g:mapleader = ' '
|
||||
|
||||
" search and replace {{{
|
||||
nnoremap <space>rr :%s/\<<C-r>=expand('<cword>')<CR>\>//g<left><left>
|
||||
"}}}
|
||||
" miscallaneous {{{
|
||||
nnoremap 0 ^
|
||||
nnoremap <silent><space>cs :let @/=""<cr>
|
||||
|
@ -1148,7 +1150,7 @@ nnoremap <space>;j jA;
|
|||
" Focus on current fold, close the rest
|
||||
nnoremap <silent> <space>zz zMzvzt
|
||||
" replace current word with last yanked/deleted text
|
||||
nnoremap <silent> <space>rr "_diwP
|
||||
nnoremap <silent> <space>rw "_diwP
|
||||
" replace current word with last yanked text
|
||||
nnoremap <silent> <space>ry diw"0P
|
||||
" quick grep of visual selection
|
||||
|
|
Loading…
Reference in New Issue