For some reason I get the following output from
var_dump( plugin_dir_url( __FILE__ ) );
http://local.dev/wp-content/plugins/C:/development/xampp/htdocs/vanilla/wp-content/themes/twentyeleven/
in a local install.
Note: I deactivated all plugins and added the line on top of the functions.php
file of the default and unmodified TwentyEleven Theme