aboutsummaryrefslogtreecommitdiffstats
path: root/vimrc
diff options
context:
space:
mode:
authorTeddy Wing2019-06-19 01:25:50 +0200
committerTeddy Wing2019-06-19 01:25:50 +0200
commit8eedae802b1ee5e4f43cfa39b3d7962afcb144ed (patch)
tree0a4f690735deb739abf4585179da6e7c1ae2bd13 /vimrc
parent516dab7f8b5083a3c6665c29cffc28b9645b3a85 (diff)
downloaddotvim-8eedae802b1ee5e4f43cfa39b3d7962afcb144ed.tar.bz2
vimrc: Ignore `.git` directory in `g:pick_command`
Since I allowed hidden files, I get everything in `.git` included in the Pick list. Filter out these files to make the list a bit less overwhelming.
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc5
1 files changed, 4 insertions, 1 deletions
diff --git a/vimrc b/vimrc
index ac948b3..f9c6488 100644
--- a/vimrc
+++ b/vimrc
@@ -432,6 +432,9 @@
" 2019.06.17:
" * Don't preserve indentation on empty lines.
"
+" 2019.06.18:
+" * Ignore `.git` directory in `g:pick_command`.
+"
" Pathogen
@@ -582,7 +585,7 @@ endif
" =======
" pick
-let g:pick_command = "ag --files-with-matches --all-types --hidden --path-to-ignore './.agignore' -g ''"
+let g:pick_command = "ag --files-with-matches --all-types --hidden --path-to-ignore './.agignore' --ignore .git -g ''"
function! PickBufferListCommand()
let bufnrs = filter(range(1, bufnr("$")), 'buflisted(v:val)')