From ef53dc1f3f8b1a61acd674a58271abd761c35161 Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Mon, 27 Mar 2023 18:32:46 +0200 Subject: update --- .bashrc | 3 +++ .vimrc | 9 +++++++++ 2 files changed, 12 insertions(+) diff --git a/.bashrc b/.bashrc index cd8ba5d..e7e0efc 100644 --- a/.bashrc +++ b/.bashrc @@ -149,6 +149,9 @@ meteo() { #[ -f "$base/usr/share/fzf/completion.bash" ] && . "$base/usr/share/fzf/completion.bash" #[ -f "$base/usr/share/fzf/key-bindings.bash" ] && . "$base/usr/share/fzf/key-bindings.bash" #unset base +export FZF_DEFAULT_COMMAND='rg --files --ignore-vcs --hidden' + +eval "$(zoxide init bash)" # Arch: display package to install for missing commands #[ -f '/usr/share/doc/pkgfile/command-not-found.bash' ] && . /usr/share/doc/pkgfile/command-not-found.bash diff --git a/.vimrc b/.vimrc index 84ff21b..d8b386f 100644 --- a/.vimrc +++ b/.vimrc @@ -18,6 +18,8 @@ set undodir=~/.vim/backup// set undofile set backup +set autochdir + " No bell set belloff=all @@ -26,6 +28,13 @@ set guifont=6x13:h13 set rtp+=/opt/homebrew/opt/fzf let g:fzf_preview = 'cat {}' +set grepprg=rg\ --vimgrep\ --smart-case\ --hidden\ --follow + +nnoremap \ :Rg +nnoremap :Files +nnoremap b :Buffers +nnoremap s :Blines + " vimki plugin autocmd filetype vimki syntax on autocmd filetype vimki set autowrite -- cgit v1.2.3