summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.bashrc3
-rw-r--r--.vimrc9
2 files changed, 12 insertions, 0 deletions
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<CR>
+nnoremap <C-T> :Files<cr>
+nnoremap <Leader>b :Buffers<cr>
+nnoremap <Leader>s :Blines<cr>
+
" vimki plugin
autocmd filetype vimki syntax on
autocmd filetype vimki set autowrite