gregsexton / gitv

gitk for Vim.
938 stars 59 forks source link

On unix, "+ is only supported with xterm_clipboard #54

Closed idbrii closed 11 years ago

idbrii commented 11 years ago

If you're on unix, but you don't have xterm_clipboard, you may want to copy the hash for use within vim (in the unnamed register). Since xterm_clipboard is irrelevant on non-unix, don't change behavior in that case.

Fixes #48.

idbrii commented 11 years ago

Haven't tested this. Not entirely sure if it's a good idea.

Edit: Ignore this: Maybe we should yank to both buffers instead (and then only "+ if available).

Edit: "+yw will yank to both "" and "+. So we only want to handle "+ not being available. I don't have a system to test this on, so I'm not sure what the error is or whether this fixes it.

gregsexton commented 11 years ago

Thanks for fixing this.