aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2015-07-23 03:21:27 -0400
committerTeddy Wing2015-07-23 03:21:27 -0400
commit9ca56b76c3e80987bc80e580a0d52bc482307057 (patch)
tree3f65f61bcfb03edbe4253e71691549c09273f8e0
parentf52e9095d0f4be418f15da93785aa7052dc76160 (diff)
downloaddotvim-9ca56b76c3e80987bc80e580a0d52bc482307057.tar.bz2
vimrc: Change pick command from `find` to `ag`
Speed things up by getting a file list from `ag`.
-rw-r--r--vimrc3
1 files changed, 2 insertions, 1 deletions
diff --git a/vimrc b/vimrc
index b587443..720fc0a 100644
--- a/vimrc
+++ b/vimrc
@@ -325,6 +325,7 @@
" * Add mapping to open a new split that `git blame`s the current file
" * Modify `git blame` mapping to open in less
" * Modify `git blame` mapping to use custom git-blamer plugin
+" * Change pick command from `find` to `ag` for speed
"
@@ -464,7 +465,7 @@ endif
" =======
" pick
-let g:pick_command = "find * -type f -o -type l"
+let g:pick_command = "ag -l -a -g ''"
function! PickBufferListCommand()
let bufnrs = filter(range(1, bufnr("$")), 'buflisted(v:val)')