summaryrefslogtreecommitdiff
path: root/vimrc
diff options
context:
space:
mode:
authorjohannst <stoelp@eit.uni-kl.de>2018-10-01 10:49:55 +0200
committerjohannst <stoelp@eit.uni-kl.de>2018-10-01 10:49:55 +0200
commit005dc12aad91ae7396db27e78de2f249bb345f48 (patch)
tree78c6ee86605ec22b941bdce84f5a504d8d38556d /vimrc
parent254ec3938ad14209bc233d9849736cbc840a6af4 (diff)
downloaddotfiles-005dc12aad91ae7396db27e78de2f249bb345f48.tar.gz
dotfiles-005dc12aad91ae7396db27e78de2f249bb345f48.zip
vimrc: added keymap to put visual highlight as search
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc1
1 files changed, 1 insertions, 0 deletions
diff --git a/vimrc b/vimrc
index 7e21426..2240936 100644
--- a/vimrc
+++ b/vimrc
@@ -295,6 +295,7 @@ set matchtime=5 " how many tenths of a second to blink when matchi
set matchpairs+=<:> " show matching <> as well
nnoremap <leader>n :noh<CR>
+execute "vnoremap <leader>/ \"ry/<C-r>r"
execute "vnoremap <leader>r \"ry:%s/<C-r>r/<C-r>r/gc"repeat('<Left>', 4)
execute "vnoremap <leader>br \"ry:bufdo%s/<C-r>r/<C-r>r/gc"repeat('<Left>', 4)