.vim/autoload/plug.vim

changeset 766
43018d0e439f
parent 763
6453c82d64e2
child 773
36a9b54b0eea
equal deleted inserted replaced
765:35bef81f5b21 766:43018d0e439f
432 endif 432 endif
433 endfunction 433 endfunction
434 434
435 function! s:dobufread(names) 435 function! s:dobufread(names)
436 for name in a:names 436 for name in a:names
437 let path = s:rtp(g:plugs[name]).'/**' 437 let path = s:rtp(g:plugs[name])
438 for dir in ['ftdetect', 'ftplugin'] 438 for dir in ['ftdetect', 'ftplugin', 'after/ftdetect', 'after/ftplugin']
439 if len(finddir(dir, path)) 439 if len(finddir(dir, path))
440 if exists('#BufRead') 440 if exists('#BufRead')
441 doautocmd BufRead 441 doautocmd BufRead
442 endif 442 endif
443 return 443 return

mercurial