mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
Search selected region in visual mode
This commit is contained in:
parent
960855931b
commit
aa3a2c5d3c
@ -134,8 +134,8 @@ nnoremap <silent> <leader>sv :silent update $MYVIMRC <bar> source $MYVIMRC <bar>
|
||||
" Reselect the text that has just been pasted
|
||||
nnoremap <leader>v `[V`]
|
||||
|
||||
" Use sane regex expression (see `:h magic` for more info)
|
||||
nnoremap / /\v
|
||||
" Search in selected region
|
||||
vnoremap / :<C-U>call feedkeys('/\%>'.(line("'<")-1).'l\%<'.(line("'>")+1)."l")<CR>
|
||||
|
||||
" Find and replace (like Sublime Text 3)
|
||||
nnoremap <C-H> :%s/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user