1
0
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:
jdhao
2019-11-12 13:30:57 +08:00
committed by GitHub
parent 960855931b
commit aa3a2c5d3c

View File

@@ -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/