summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReiner Herrmann <reiner@reiner-h.de>2016-09-28 20:15:10 +0200
committerReiner Herrmann <reiner@reiner-h.de>2016-09-28 20:23:19 +0200
commit88c3381184ab2da5ff823ed2f471102a9d64a3c8 (patch)
treede81551cf381f2a108b9c3e2872ef723c905c235
parent009bdd05446461924e8b835ffd8f6bec78b77792 (diff)
vim: replace ag.vim with grepprg setting
ag.vim is deprecated and has unclear licensing. https://github.com/rking/ag.vim/issues/124#issuecomment-227038003
-rw-r--r--.gitmodules3
m---------vim/bundle/ag0
-rw-r--r--vimrc2
3 files changed, 2 insertions, 3 deletions
diff --git a/.gitmodules b/.gitmodules
index 30df90d..9c0130f 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -7,9 +7,6 @@
[submodule "fugitive"]
path = vim/bundle/fugitive
url = https://github.com/tpope/vim-fugitive.git
-[submodule "ag"]
- path = vim/bundle/ag
- url = https://github.com/rking/ag.vim.git
[submodule "bufexplorer"]
path = vim/bundle/bufexplorer
url = https://github.com/jlanzarotta/bufexplorer.git
diff --git a/vim/bundle/ag b/vim/bundle/ag
deleted file mode 160000
-Subproject 4a0dd6e190f446e5a016b44fdaa2feafc582918
diff --git a/vimrc b/vimrc
index 2c6da3e..658bdf4 100644
--- a/vimrc
+++ b/vimrc
@@ -28,6 +28,8 @@ set encoding=utf-8 " use utf8 by default
set number " enable line numbers
set relativenumber " show relative line numbers
set backspace=indent,eol,start " enable backspacing
+set grepprg=ag\ --vimgrep " use Ag for grepping
+set grepformat=%f:%l:%c:%m " Ag-specific output format
syntax on " enable syntax highlighting
filetype plugin indent on