vim: Add substitution binding for visual mode too
This commit is contained in:
@@ -67,11 +67,13 @@ nnoremap <leader>l <C-w><C-l>
|
|||||||
" Substitute command
|
" Substitute command
|
||||||
if (exists('+inccommand') && &inccommand != '')
|
if (exists('+inccommand') && &inccommand != '')
|
||||||
nnoremap S :%s/
|
nnoremap S :%s/
|
||||||
|
vnoremap S :s/
|
||||||
else
|
else
|
||||||
" This does not work with live previewing commands (inccommand) since the
|
" This does not work with live previewing commands (inccommand) since the
|
||||||
" replace pattern is already defined and thus everything matching the search
|
" replace pattern is already defined and thus everything matching the search
|
||||||
" pattern is just deleted.
|
" pattern is just deleted.
|
||||||
nnoremap S :%s//gc<Left><Left><Left>
|
nnoremap S :%s//gc<Left><Left><Left>
|
||||||
|
vnoremap S :s//gc<Left><Left><Left>
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Interact with the system clipboard
|
" Interact with the system clipboard
|
||||||
|
|||||||
Reference in New Issue
Block a user