diff options
| author | Marc Vertes <mvertes@free.fr> | 2023-03-27 18:32:46 +0200 |
|---|---|---|
| committer | Marc Vertes <mvertes@free.fr> | 2023-03-27 18:32:46 +0200 |
| commit | ef53dc1f3f8b1a61acd674a58271abd761c35161 (patch) | |
| tree | 4cdb7c89354eba064501921b82657cf58a16cd61 | |
| parent | c789f58578881c753faa04497f3d1f2ac556d2a5 (diff) | |
update
| -rw-r--r-- | .bashrc | 3 | ||||
| -rw-r--r-- | .vimrc | 9 |
2 files changed, 12 insertions, 0 deletions
@@ -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 @@ -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 |
