svermeulen / vim-easyclip

Simplified clipboard functionality for Vim
696 stars 21 forks source link

Load the plugin only once #81

Closed somini closed 8 years ago

somini commented 8 years ago

Also, the de-facto default of having a loaded_<PluginName> variable helps a lot when checking if the plugin loaded.

svermeulen commented 8 years ago

I've seen this convention in other plugins but never understood its purpose. After a quick googling it makes more sense now. Thanks!

somini commented 8 years ago

Not just that, the plugin/*.vim files are sourced everytime you enter a new buffer.

svermeulen commented 8 years ago

Oh are you sure? I thought the plugin/*.vim files are only sourced once on startup. I just tried adding some echom lines to it and am only seeing my text echo'd once

somini commented 8 years ago

You are right, I confused that with ftplugin.