The situation: I want to use vader.vim to write some unit tests for a script of mine.However to really test it, it would be best to only have my plugin and vader.vim loaded. I know how that you can use vim -c 'your-commands-here' via the cmdline. However when I try to use vim -c 'set rtp+=my-plugin' it simply does nothing. I feel like the whole bootup process is finished and then it gets added to the rtp, which is unfortunate.So the question: How do I effectively whole plugins from the cmdline, or how do I resource my plugins in my rtp?
How to load a single plugin when starting vim from the cmdline
plugin system
Use custom vimrc to source those plugins and use vim -u /path/to/custom_vimrcor, as suggested by @hgiesel, use process substitutionvim -u <( cat <<< 'commands to be sourced' )