On 2011-03-25, Tim Chase wrote:
> On 03/25/2011 02:41 PM, Suresh Govindachar wrote:
> > On Windows, after yanking a line, :echo @* shows the yanked
> > line. But on Unix, there doesn't seem to be anything in the *
> > register -- it is as though there is no * register at all!
> > Version of vim used on Fedora 14 was:
> >
> > :version
> > VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Nov 16 2010 17:05:25)
> > Included patches: 1-56
> > Modified by<[email protected]>
> > Compiled by<[email protected]>
> > Huge version without GUI.
>
> The "without GUI" seems to be the key. If you have a build that
> is GUI-aware, it should be able to access the clipboard. You
> might check the output for "+clipboard" and for "+xterm_clipboard"
>
> Also remember that on X, you have both the Selection register
> ("*") and the Clipboard register ("+"). The former is for things
> that have been selected, while the latter is for thing's you've
> explicitly cut/copied.
One way around this problem is to link a vim in your path to the
system's gvim, e.g.,
$ ln -s /usr/bin/gvim ~/bin/vim
Then executing vim from the command line will run gvim in terminal
mode and give you access to X features such as the clipboard.
This works better than the solution of putting this alias in your
~/.bashrc
alias vim='gvim -v'
because programs that default to using "vim" as their external
editor will then use the vim with X support enabled.
Regards,
Gary
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php