how to install vim-x11 on redhat 6.5

559 views
Skip to first unread message

Li Xue

unread,
Jun 6, 2014, 10:57:13 AM6/6/14
to vim...@googlegroups.com
Hello,

I want to add x-clipboard support to vim on redhat 6.5. I searched the web and found that I need to install vim-x11 to do that. I downloaded vim-x11.rpm and tried to install it using rpm. But there is a long list of dependencies. Do I need to install these dependencies one by one? Is there a good way to install vim-x11 and its dependencies automatically? Many thanks.

I program all the time through ssh sessions. And x-clipboard support makes my life much easier.


Li

--
Xue, Li
Post-doctoral Research Associate
College of Information Sciences and Technology
Penn State University
Email: lx...@ist.psu.edu
Web site: http://www.cs.iastate.edu/~lixue/

Tony Mechelynck

unread,
Jun 7, 2014, 8:57:52 PM6/7/14
to vim...@googlegroups.com
On 06/06/14 16:57, Li Xue wrote:
> Hello,
>
> I want to add x-clipboard support to vim on redhat 6.5. I searched the
> web and found that I need to install vim-x11 to do that. I downloaded
> vim-x11.rpm and tried to install it using rpm. But there is a long list
> of dependencies. Do I need to install these dependencies one by one? Is
> there a good way to install vim-x11 and its dependencies automatically?
> Many thanks.
>
> I program all the time through ssh sessions. And x-clipboard support
> makes my life much easier.
>
>
> Li

You should be able to install gvim and all its dependencies in one fell
swoop by means of the "yum" package utility.

I think you should be sitting at the keyboard of the machine where you
want gvim to run, and preferably (temporarily) logged-in to X11 as root.
Start yum, then find the package vim-x11 in its interface, select that
package, and use any necessary menu item to install it (I'm not on
Fedora myself so I can't give detailed explanations).

Once vim-x11 is installed, you should be able to log out as root, log in
under your usual username, and run gvim with no problems. You may need
to modify your ~/.vimrc (see, among others, ":help has()", and, a little
lower down, "gui_running" under ":help feature-list") and/or to write a
~/.gvimrc file. The latter is never strictly necessary but sometimes it
can be easier.


Another way to install Vim with X support on your machine is to compile
it for yourself. It isn't hard, and it won't interfere with Fedora's
Vim, because by default, the Vim you compile will install its runtime
files in and under /usr/local/share/vim/vim74/, and its executable in
/usr/local/bin/. Its $VIM is /usr/local/vim and its $VIMRUNTIME is
$VIM/vim74 -- OTOH, packages from your distro don't have the …/local/…
in their paths (other parts of the pathname may vary from one distro to
the next). Just make sure that /usr/local/bin is at the start of the
$PATH (with the possible exception of ~/bin).
See
http://vim.wikia.com/wiki/Getting_the_Vim_source_with_Mercurial
http://users.skynet.be/antoine.mechelynck/vim/compunix.htm


If I'm mistaken in some of the above, I hope someone will correct me.


Best regards,
Tony.
--
Oh, I get it!! "The BEACH goes on", huh, SONNY??

Reply all
Reply to author
Forward
0 new messages