summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2023-03-27 18:32:46 +0200
committerMarc Vertes <mvertes@free.fr>2023-03-27 18:32:46 +0200
commitef53dc1f3f8b1a61acd674a58271abd761c35161 (patch)
tree4cdb7c89354eba064501921b82657cf58a16cd61
parentc789f58578881c753faa04497f3d1f2ac556d2a5 (diff)
update
-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