Taken from here: https://stackoverflow.com/a/171558

What does let g:clipbrdDefaultReg = '+' mean?

  • 1
    it is a variable. What script of plugin that one uses, cannot be seen from the script. – Christian Brabandt Nov 30 '16 at 19:01
  • probably from this plugin – mMontu Nov 30 '16 at 19:07

Plugins are configured via global variables, defined in your ~/.vimrc. As this file is read before any plugins are loaded, this is a convenient way to configure plugins.

Most plugins prefix those variables with their name (g:PluginName_ConfigVar); this plugin is old and does not, but @mMontu found it nonetheless: clipbrd. Usually the plugin page (or the initial comment block at the top of the script) has an explanation of the config variables and possible values.

If you don't have a plugin/clipbrd.vim file in your ~/.vim/ folder, you can safely drop this line.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.