Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- " prevent default plugins from load
- function s:stockless()
- let g:real_rtp = &runtimepath
- set rtp-=$VIMRUNTIME
- if &rtp == g:real_rtp | unlet g:real_rtp | return | endif
- " if Vim goes to source anything else whatsoever, fix &runtimepath first
- augroup Stockless
- autocmd SourcePre * let &runtimepath = remove(g:,'real_rtp') | exe 'autocmd! Stockless' | exe 'augroup! Stockless'
- augroup END
- endfunc
- call s:stockless()
Advertisement
Add Comment
Please, Sign In to add comment