gregsexton / gitv

gitk for Vim.
938 stars 59 forks source link

'yc' fails if vim is not compiled with xterm_clipboard #48

Closed sitaramc closed 11 years ago

sitaramc commented 11 years ago

Unfortunately many servers are setup with vim's that do not have this, which makes the 'yc' expand map choke on the "+,

idbrii commented 11 years ago

Does "* exist if you don't have xterm_clipboard? How do you copy text from vim to apply to other applications if you don't have a system clipboard (is there an alternative)?

sitaramc commented 11 years ago

On Mon, Feb 4, 2013 at 10:37 PM, pydave notifications@github.com wrote:

Does "* exist if you don't have xterm_clipboard? How do you copy text from vim to apply to other applications if you don't have a system clipboard (is there an alternative)?

Likely not. I basically ignored the whole thing and added this to my vimrc:

nmap     gS          m'$F[wyw`'

to my vimrc and anytime I want to do something that involves the commit SHA I use it, like for example:

nmap     gA          gS:!git commit --fixup=<C-R>"<CR>
nmap     gR          gS:!git rebase -i --autosquash <C-R>"<CR>

I would like vim settings not to assume xterm and such -- makes it less useful when running over ssh with X11 disabled etc (at minimum), but... shrug.

idbrii commented 11 years ago

Oh, you're using the hash within vim. Looks like copying it to "" in the absence of xterm_clipboard on unix would be sufficient:

Can you try https://github.com/gregsexton/gitv/pull/54

sitaramc commented 11 years ago

On Tue, Feb 5, 2013 at 4:25 AM, pydave notifications@github.com wrote:

Oh, you're using the hash within vim. Looks like copying it to "" in the absence of xterm_clipboard on unix would be sufficient:

Can you try #54

works perfectly; thanks!

gregsexton commented 11 years ago

Merged. Hopefully this should fix your issue. Thanks.