summaryrefslogtreecommitdiff
path: root/.vim/vimrc_files
diff options
context:
space:
mode:
Diffstat (limited to '.vim/vimrc_files')
-rw-r--r--.vim/vimrc_files/keymaps.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/.vim/vimrc_files/keymaps.vim b/.vim/vimrc_files/keymaps.vim
index cfcd938..4edd32a 100644
--- a/.vim/vimrc_files/keymaps.vim
+++ b/.vim/vimrc_files/keymaps.vim
@@ -75,3 +75,6 @@ nnoremap <C-b> :call BufExplorer()<CR>
" invoke grep and print output into current buffer
nnoremap <C-g> :read !grep -nI
+
+" substituce selection
+vnoremap <C-r> "hy:%s/<C-r>h//gc<left><left><left>