Temporarily disable some plugins using pathogen in vim.

前端 未结 5 681
青春惊慌失措
青春惊慌失措 2020-12-12 11:43

I think I have a bug in one plugin. I would like to load only this plugin, without having to delete all the other bundles in my pathogen\'s bundle folder, to debug.

5条回答
  •  遥遥无期
    2020-12-12 11:43

    Why not just:

    1. rename the current bundle directory
    2. create a new empty bundle directory
    3. put your test plugin files into the new bundle dir?

    When done put everything back the way it was. (The suggested method of loading Vim without plugins and sourcing the plugin file would work if it's a simple one-file plugin, but if you're doing an ftplugin then moving dirs around is probably best way and not that hard.)

提交回复
热议问题