summaryrefslogtreecommitdiff
path: root/.vim/vimrc_files/keymaps.vim
diff options
context:
space:
mode:
authorJohannes Stolp <jstolp@fr65zebu10.internal.synopsys.com>2016-06-12 12:47:15 +0200
committerJohannes Stolp <jstolp@fr65zebu10.internal.synopsys.com>2016-06-12 12:47:15 +0200
commitd3501225442d08275d1300e8797d1c15e0025488 (patch)
tree1a3810db556d5e4e44c2cc53533f020487bd51af /.vim/vimrc_files/keymaps.vim
parent1d92750bcf7675cd7e702e9df86cf9b5d88ab09b (diff)
downloaddotfiles-d3501225442d08275d1300e8797d1c15e0025488.tar.gz
dotfiles-d3501225442d08275d1300e8797d1c15e0025488.zip
added substitute shortcut in vim
Diffstat (limited to '.vim/vimrc_files/keymaps.vim')
-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>