From 71b714abd448808e352d55dce015e1bdcbcbf504 Mon Sep 17 00:00:00 2001 From: Jannik ZANDER Date: Fri, 22 Jun 2018 10:41:30 +0200 Subject: [PATCH] Add rg --- .config/bash/aliases | 4 +++- .vim/vimrc | 10 +++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.config/bash/aliases b/.config/bash/aliases index 196ce3d..84aa45a 100644 --- a/.config/bash/aliases +++ b/.config/bash/aliases @@ -20,13 +20,15 @@ alias ls="ls $colorflag $lsflags" alias grep='grep --color=auto' alias egrep='egrep --color=auto' alias fgrep='fgrep --color=auto' +alias h='history' if [ -e /usr/bin/vimx ]; then alias vim='/usr/bin/vimx'; fi # Shortcuts alias dit='git --git-dir=$HOME/.dit --work-tree=$HOME' alias ag='ag --path-to-ignore=$HOME/.ignore --skip-vcs-ignores' -alias h='history' +alias rg='rg --path-separator="//"' + # Easier navigation: .., ..., ...., ....., ~ and - alias ..="cd .." diff --git a/.vim/vimrc b/.vim/vimrc index 6f8ff8d..a72f2c0 100644 --- a/.vim/vimrc +++ b/.vim/vimrc @@ -129,7 +129,9 @@ let g:netrw_liststyle=3 let g:netrw_banner = 0 let g:netrw_sort_sequence = '[\/]$,*' - +let g:ctrlp_map = '' +let g:ctrlp_cmd = 'CtrlP' +let g:ctrlp_working_path_mode = 'ra' "let g:markdown_fenced_languages = ['html', 'python', 'bash=sh'] "let g:markdown_syntax_conceal = 0 @@ -142,9 +144,11 @@ let g:netrw_sort_sequence = '[\/]$,*' "let g:airline#extensions#tabline#enabled = 1 "for ack.vim +"if executable('rg') +" let g:ackprg = 'rg --path-separator="//"' +"endif if executable('ag') -" let g:ackprg = 'ag --vimgrep --skip-vcs-ignores' - let g:ackprg = 'rg' + let g:ackprg = 'ag --vimgrep --skip-vcs-ignores --path-to-ignore ~/.ignore --cpp' endif -- 2.43.0