If I'm using a build of Vim with the xterm_clipboard feature then the system clipboard content is available through the + register.
If the build I'm using doesn't have this feature, can I make the "+ register call my custom programs to retrieve and set the system clipboard (xsel -bo and xsel -bi, or likewise with xclip)? Likewise with "* to call xsel -po and xsel -pi.
The point is to be able to type something like "+p without having to worry whether the feature is available. Typing :r !xsel -b<Enter> is not what I'm looking for: I want the same keystrokes to work, and I want the paste variants to follow what's available for “true” registers (P, gp, …).
Bonus: can I define custom commands for other register names?