From 8eedae802b1ee5e4f43cfa39b3d7962afcb144ed Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Wed, 19 Jun 2019 01:25:50 +0200 Subject: 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. --- vimrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'vimrc') 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)') -- cgit v1.2.3