]> git.zndr.dk Git - dotfiles.git/commitdiff
Add ag search
authorJannik ZANDER <jzander@grundfos.com>
Mon, 18 Jun 2018 08:52:00 +0000 (10:52 +0200)
committerJannik ZANDER <jzander@grundfos.com>
Mon, 18 Jun 2018 08:52:00 +0000 (10:52 +0200)
.config/bash/aliases
.gitignore
.gitmodules
.vim/pack/plugins/start/ack.vim [new submodule]
.vimrc

index 198f2773626362aa3d04bc6339bff8311e2af1c9..aa81ea0bfadbbccab992e1fcf93e3978ac95e210 100644 (file)
@@ -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
 
index a7db3a3770285946b94680b464e77e2bed9843d7..7f5d8dac20333604427496a187e1614c14f45ae9 100644 (file)
@@ -1 +1 @@
-.dotfiles
+.dit
index 843dadfb50a885e99e603f831abf7a0463dbbc48..e6422f745fb70c0e1104bd639b924e67adbe1a0f 100644 (file)
@@ -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 (submodule)
index 0000000..36e40f9
--- /dev/null
@@ -0,0 +1 @@
+Subproject commit 36e40f9ec91bdbf6f1adf408522a73a6925c3042
diff --git a/.vimrc b/.vimrc
index 0204ad0c2fe8425c4be9360acedb2b51e4b09da7..fe8c943c581602ef7daf6187c9f95be0422c4f55 100644 (file)
--- 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