On Mon, Feb 06, 2012 at 02:53:37AM -0800, Alp Burcay wrote:
> I am new to vim_dev group. I have read several posts regarding a similar
> issue before I make this post
> (http://vim.wikia.com/wiki/Accessing_the_system_clipboard and such). And the
> more I read, the more I got confused. That's why I am sending this email.
> 
> 
> I am using vim, not Gvim, in terminal window. I had had vim 7.2 which I
> installed using ubuntu software center. It didn't have xterm_clipboard
> feature.

As others have mentioned, you need a Vim build with X11 support (and
therefore gvim, in most circumstances) even if you're only ever going to
use it in a terminal.  You can get this without building your own by
installing Ubuntu's vim-gtk package.

If, after doing that, running ":echo has('xterm_clipboard')" in vim
doesn't report 1 then the alternatives system is probably pointing at
the wrong binary.  You should see something like this

$ update-alternatives --display vim
vim - auto mode
  link currently points to /usr/bin/vim.gtk
/usr/bin/vim.basic - priority 30
/usr/bin/vim.gtk - priority 50
Current 'best' version is '/usr/bin/vim.gtk'.

but it may be in manual mode, with the current 'best' set to a binary
that doesn't provide clipboard access.  Running either
"update-alternatives --auto vim" or "update-alternatives --config vim"
would give you the opportunity to fix this.  The man page will explain
what these do.

Cheers,
-- 
James
GPG Key: 4096R/331BA3DB 2011-12-05 James McCoy <[email protected]>

Attachment: signature.asc
Description: Digital signature

Raspunde prin e-mail lui