diff --git a/mappings.vim b/mappings.vim index ec7b6fa..62319a5 100644 --- a/mappings.vim +++ b/mappings.vim @@ -134,8 +134,8 @@ nnoremap sv :silent update $MYVIMRC source $MYVIMRC " Reselect the text that has just been pasted nnoremap v `[V`] -" Use sane regex expression (see `:h magic` for more info) -nnoremap / /\v +" Search in selected region +vnoremap / :call feedkeys('/\%>'.(line("'<")-1).'l\%<'.(line("'>")+1)."l") " Find and replace (like Sublime Text 3) nnoremap :%s/