diff vimrc @ 201:6de3103d47f4

Use wildignore in unite file_rec/async
author zegervdv <zegervdv@me.com>
date Wed, 19 Nov 2014 19:08:21 +0100
parents a91590ba2b32
children 2c77dbb93f11
line wrap: on
line diff
--- a/vimrc	Wed Nov 19 08:29:00 2014 +0100
+++ b/vimrc	Wed Nov 19 19:08:21 2014 +0100
@@ -53,12 +53,13 @@
 " Coffeescript
 Plug 'kchmck/vim-coffee-script', { 'for': 'coffeescript' }
 
+" Git
+Plug 'tpope/vim-git'
+
 " Dependencies
 Plug 'MarcWeber/vim-addon-mw-utils'
 Plug 'tomtom/tlib_vim'
-
 Plug 'xolox/vim-misc'
-Plug 'tpope/vim-git'
 
 
 call plug#end()
@@ -155,7 +156,7 @@
 if v:version >= 703
   set undodir=/tmp//,.
 endif
-set wildignore+=*/tmp/*,*.so,*.swp,*.zip,*.o,*.bin,*.elf,*.hex
+set wildignore+=*/tmp/*,*.so,*.swp,*.zip,*.o,*.bin,*.elf,*.hex,*.eps,.git/**
 
 " Sentences are ended with double spaces
 set cpo+=J
@@ -370,7 +371,8 @@
 call unite#custom#source('file', 'sorters', 'sorter_length')
 call unite#custom#source('file_rec/async', 'converters', [])
 call unite#custom#source('file_rec/async', 'sorters', [])
-call unite#custom#source('file_rec/async', 'max_candidates', 20)
+call unite#custom#source('file_rec/async', 'ignore_globs', split(&wildignore, ','))
+call unite#custom#source('file_rec/async', 'max_candidates', 50)
 let g:unite_enable_start_insert=0
 let g:unite_source_history_yank_enable=1
 let g:unite_source_rec_max_cache_files=3000