diff options
author | johannst <stoelp@eit.uni-kl.de> | 2018-05-14 15:32:36 +0200 |
---|---|---|
committer | johannst <stoelp@eit.uni-kl.de> | 2018-05-14 15:32:36 +0200 |
commit | 36096f6d9608a014c05103d7ba6f472794fcc1ed (patch) | |
tree | bafb6935d15ded930cfa90bb67ebafa9561a935d | |
parent | 1334be46cddda02e659b4785e93e9e2347d84704 (diff) | |
download | dotfiles-36096f6d9608a014c05103d7ba6f472794fcc1ed.tar.gz dotfiles-36096f6d9608a014c05103d7ba6f472794fcc1ed.zip |
bashrc: enabled vi cmd editing. vimrc: added keymap for visual find grep and all buffer search/repleace
-rw-r--r-- | bashrc | 2 | ||||
-rw-r--r-- | vimrc | 4 |
2 files changed, 4 insertions, 2 deletions
@@ -38,7 +38,7 @@ function vimode { bind -m vi-command 'Control-e:end-of-line' bind -m vi-insert 'Control-a:beginning-of-line' bind -m vi-insert 'Control-e:end-of-line' - bind -m vi-command '"v":""' # disable opening tmp file + #bind -m vi-command '"v":""' # disable opening tmp file } function normalmode { @@ -138,6 +138,7 @@ endif if s:IsPluginEnabled('johannst/AsyncCmdProcessor.vim') execute "nnoremap <leader>fg :Async find . -type f -exec grep -nHI {} +"repeat('<Left>', 6) + execute "vnoremap <leader>fg \"fy:Async find . -type f -exec grep -nHI <C-r>f {} +"repeat('<Left>', 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 <leader>n :noh<CR> -execute "vnoremap <leader>r \"hy:%s/<C-r>h/<C-r>h/gc"repeat('<Left>', 4) +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) "}}} "{{{ Buffer & Splits |