diff options
| author | Teddy Wing | 2019-06-19 01:25:50 +0200 | 
|---|---|---|
| committer | Teddy Wing | 2019-06-19 01:25:50 +0200 | 
| commit | 8eedae802b1ee5e4f43cfa39b3d7962afcb144ed (patch) | |
| tree | 0a4f690735deb739abf4585179da6e7c1ae2bd13 /vimrc | |
| parent | 516dab7f8b5083a3c6665c29cffc28b9645b3a85 (diff) | |
| download | dotvim-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-- | vimrc | 5 | 
1 files changed, 4 insertions, 1 deletions
| @@ -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)') | 
