From: Jannik ZANDER Date: Mon, 18 Jun 2018 08:52:00 +0000 (+0200) Subject: Add ag search X-Git-Url: https://git.zndr.dk/?a=commitdiff_plain;h=c02c00be57a94295b747017bbcb378911c490b1d;p=dotfiles.git Add ag search --- diff --git a/.config/bash/aliases b/.config/bash/aliases index 198f277..aa81ea0 100644 --- a/.config/bash/aliases +++ b/.config/bash/aliases @@ -20,6 +20,7 @@ alias ls="ls $colorflag $lsflags" alias grep='grep --color=auto' alias egrep='egrep --color=auto' alias fgrep='fgrep --color=auto' +alias ag='ag --skip-vcs-ignores' if [ -e /usr/bin/vimx ]; then alias vim='/usr/bin/vimx'; fi diff --git a/.gitignore b/.gitignore index a7db3a3..7f5d8da 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -.dotfiles +.dit diff --git a/.gitmodules b/.gitmodules index 843dadf..e6422f7 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule ".vim/pack/plugins/start/vim-airline"] path = .vim/pack/plugins/start/vim-airline url = https://github.com/vim-airline/vim-airline.git +[submodule ".vim/pack/plugins/start/ack.vim"] + path = .vim/pack/plugins/start/ack.vim + url = https://github.com/mileszs/ack.vim.git diff --git a/.vim/pack/plugins/start/ack.vim b/.vim/pack/plugins/start/ack.vim new file mode 160000 index 0000000..36e40f9 --- /dev/null +++ b/.vim/pack/plugins/start/ack.vim @@ -0,0 +1 @@ +Subproject commit 36e40f9ec91bdbf6f1adf408522a73a6925c3042 diff --git a/.vimrc b/.vimrc index 0204ad0..fe8c943 100644 --- a/.vimrc +++ b/.vimrc @@ -1,11 +1,11 @@ " section: environment {{{1 " --------------------- -"silent !mkdir -p ~/.local/share/vim/{swap,backup,undo} -"set directory=~/.local/share/vim/swap -"set backupdir=~/.local/share/vim/backup -"set undodir=~/.local/share/vim/undo -"set viminfo+=n~/.local/share/vim/viminfo +silent !mkdir -p ~/.local/share/vim/{swap,backup,undo} +set directory=~/.local/share/vim/swap +set backupdir=~/.local/share/vim/backup +set undodir=~/.local/share/vim/undo +set viminfo+=n~/.local/share/vim/viminfo "set runtimepath+=~/.cache/vim " section: plugins {{{1 @@ -141,6 +141,12 @@ let g:netrw_sort_sequence = '[\/]$,*' "for airline "let g:airline#extensions#tabline#enabled = 1 +"for ack.vim +if executable('ag') + let g:ackprg = 'ag --vimgrep --skip-vcs-ignores' +endif + + let g:editorconfig_exclude_patterns = ['fugitive://.*', 'scp://.*'] let g:editorconfig_verbose = 1