Guest User

Untitled

a guest
Feb 25th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 0.42 KB | None | 0 0
  1. " prevent default plugins from load
  2. function s:stockless()
  3.     let g:real_rtp = &runtimepath
  4.     set rtp-=$VIMRUNTIME
  5.     if &rtp == g:real_rtp | unlet g:real_rtp | return | endif
  6.     " if Vim goes to source anything else whatsoever, fix &runtimepath first
  7.     augroup Stockless
  8.     autocmd SourcePre * let &runtimepath = remove(g:,'real_rtp') | exe 'autocmd! Stockless' | exe 'augroup! Stockless'
  9.     augroup END
  10. endfunc
  11.  
  12. call s:stockless()
Advertisement
Add Comment
Please, Sign In to add comment