-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to Disable a Plugin #469
Comments
(1 and 2 should be done before |
Thanks! |
Just for the record, this solution worked for me. The plugin must be removed from both
function! s:deregister(repo)
let repo = substitute(a:repo, '[\/]\+$', '', '')
let name = fnamemodify(repo, ':t:s?\.git$??')
call remove(g:plugs, name)
call remove(g:plugs_order, index(g:plugs_order, name))
endfunction
command! -nargs=1 -bar UnPlug call s:deregister(<args>)
call plug#begin('~/.vim/bundle')
" Load bundles
source ~/.vim/bundle.vim
" Load bundles of the fork
if filereadable(expand("~/.vim/bundle.fork"))
source ~/.vim/bundle.fork
endif
" Load bundles of the local machine
if filereadable(expand("~/.vim/bundle.local"))
source ~/.vim/bundle.local
endif
call plug#end()
delcom UnPlug
" ...
Plug 'kien/ctrlp.vim'
" ...
" Disable
UnPlug 'kien/ctrlp.vim'
" Replace
Plug 'junegunn/fzf'
Plug 'junegunn/fzf.vim' |
Hmm, you're right. I'll make the code ignore any entry in |
I'm using Thoughtbot's dotfiles, which installs Syntastic by default. Since I'm using Neovim, I'd like for a way to disable the prevent Syntastic from being installed and install Neomake instead.
For sample, I'd like to do something like this:
Is something like that possible? Thanks in advance!
P.S. Thanks for creating such a great plugin manager!
The text was updated successfully, but these errors were encountered: