Clear #filetypeplugin for filetype-based ODL (#24)
This commit is contained in:
parent
288a4f72ce
commit
1d477a1a01
9
plug.vim
9
plug.vim
|
@ -125,6 +125,15 @@ function! plug#end()
|
||||||
endif
|
endif
|
||||||
|
|
||||||
filetype off
|
filetype off
|
||||||
|
if exists('#filetypeplugin') &&
|
||||||
|
\ !empty(filter(values(g:plugs), 'has_key(v:val, "for")'))
|
||||||
|
unlet! g:did_load_ftplugin
|
||||||
|
augroup filetypeplugin
|
||||||
|
autocmd!
|
||||||
|
augroup END
|
||||||
|
augroup! filetypeplugin
|
||||||
|
endif
|
||||||
|
|
||||||
" we want to make sure the plugin directories are added to rtp in the same
|
" we want to make sure the plugin directories are added to rtp in the same
|
||||||
" order that they are registered with the Plug command. since the s:add_rtp
|
" order that they are registered with the Plug command. since the s:add_rtp
|
||||||
" function uses ^= to add plugin directories to the front of the rtp, we
|
" function uses ^= to add plugin directories to the front of the rtp, we
|
||||||
|
|
Loading…
Reference in New Issue
Block a user