aboutsummaryrefslogtreecommitdiffstats
path: root/vimrc
diff options
context:
space:
mode:
authorTeddy Wing2019-05-10 23:20:50 +0200
committerTeddy Wing2019-05-10 23:20:50 +0200
commit5ca15b0fe76f5a30932afaaafed5bd27ca09da43 (patch)
tree31430394588431c37b0da18b8490a3cc26f3d8e3 /vimrc
parent478d545286618e952bbc3de5722b166f2b867320 (diff)
downloaddotvim-5ca15b0fe76f5a30932afaaafed5bd27ca09da43.tar.bz2
vimrc: Use long CLI options to `ag` in `g:pick_command`
For better documentation.
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc5
1 files changed, 4 insertions, 1 deletions
diff --git a/vimrc b/vimrc
index 7311401..7234191 100644
--- a/vimrc
+++ b/vimrc
@@ -411,6 +411,9 @@
" * Format Go code with `goimports`.
" * Add next/previous shortcuts for the location list.
"
+" 2019.05.10:
+" * Use long command line options to `ag` in `g:pick_command`.
+"
" Pathogen
@@ -554,7 +557,7 @@ endif
" =======
" pick
-let g:pick_command = "ag -l -a -p './.agignore' -g ''"
+let g:pick_command = "ag --files-with-matches --all-types --path-to-ignore './.agignore' -g ''"
function! PickBufferListCommand()
let bufnrs = filter(range(1, bufnr("$")), 'buflisted(v:val)')