From 36096f6d9608a014c05103d7ba6f472794fcc1ed Mon Sep 17 00:00:00 2001 From: johannst Date: Mon, 14 May 2018 15:32:36 +0200 Subject: bashrc: enabled vi cmd editing. vimrc: added keymap for visual find grep and all buffer search/repleace --- vimrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'vimrc') diff --git a/vimrc b/vimrc index c3c274e..5626c31 100644 --- a/vimrc +++ b/vimrc @@ -138,6 +138,7 @@ endif if s:IsPluginEnabled('johannst/AsyncCmdProcessor.vim') execute "nnoremap fg :Async find . -type f -exec grep -nHI {} +"repeat('', 6) + execute "vnoremap fg \"fy:Async find . -type f -exec grep -nHI f {} +"repeat('', 6) endif if s:IsPluginEnabled('w0rp/ale') @@ -269,7 +270,8 @@ set matchtime=5 " how many tenths of a second to blink when matchi set matchpairs+=<:> " show matching <> as well nnoremap n :noh -execute "vnoremap r \"hy:%s/h/h/gc"repeat('', 4) +execute "vnoremap r \"ry:%s/r/r/gc"repeat('', 4) +execute "vnoremap br \"ry:bufdo%s/r/r/gc"repeat('', 4) "}}} "{{{ Buffer & Splits -- cgit v1.2.3